Browse Source

Fix ping timeout.

cl-refactor
Gav Wood 10 years ago
parent
commit
be72db117e
  1. 2
      libp2p/Host.cpp

2
libp2p/Host.cpp

@ -674,7 +674,7 @@ void Host::doWork()
{
for (auto p: m_peers)
if (auto pp = p.second.lock())
if (chrono::steady_clock::now() - pp->m_lastReceived > chrono::seconds(30))
if (chrono::steady_clock::now() - pp->m_lastReceived > chrono::seconds(60))
pp->disconnect(PingTimeout);
pingAll();
}

Loading…
Cancel
Save