MCPcopy Create free account
hub / github.com/PurpleI2P/i2pd / RescheduleIntroducersUpdateTimerV6

Method RescheduleIntroducersUpdateTimerV6

libi2pd/SSU2.cpp:1479–1491  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1477 }
1478
1479 void SSU2Server::RescheduleIntroducersUpdateTimerV6 ()
1480 {
1481 if (m_IsPublished)
1482 {
1483 m_IntroducersUpdateTimerV6.cancel ();
1484 i2p::context.ClearSSU2Introducers (false);
1485 m_IntroducersV6.clear ();
1486 m_IntroducersUpdateTimerV6.expires_after (std::chrono::seconds(
1487 (SSU2_KEEP_ALIVE_INTERVAL + m_Rng () % SSU2_KEEP_ALIVE_INTERVAL_VARIANCE)/2));
1488 m_IntroducersUpdateTimerV6.async_wait (std::bind (&SSU2Server::HandleIntroducersUpdateTimer,
1489 this, std::placeholders::_1, false));
1490 }
1491 }
1492
1493 void SSU2Server::HandleIntroducersUpdateTimer (const boost::system::error_code& ecode, bool v4)
1494 {

Callers 1

HandlePeerTestMethod · 0.80

Calls 1

ClearSSU2IntroducersMethod · 0.80

Tested by

no test coverage detected