mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 06:28:31 +01:00
Merge #9715: Disconnect peers which we do not receive VERACKs from within 60 sec
66f861aAdd a test for P2P inactivity timeouts (Matt Corallo)b436f92qa: Expose on-connection to mininode listeners (Matt Corallo)8aaba7aqa: mininode learns when a socket connects, not its first action (Matt Corallo)2cbd119Disconnect peers which we do not receive VERACKs from within 60 sec (Matt Corallo)
This commit is contained in:
@@ -1388,6 +1388,11 @@ void CConnman::ThreadSocketHandler()
|
||||
LogPrintf("ping timeout: %fs\n", 0.000001 * (GetTimeMicros() - pnode->nPingUsecStart));
|
||||
pnode->fDisconnect = true;
|
||||
}
|
||||
else if (!pnode->fSuccessfullyConnected)
|
||||
{
|
||||
LogPrintf("version handshake timeout from %d\n", pnode->id);
|
||||
pnode->fDisconnect = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user