Drop idle connections

Idle = didn't send any full messages in the last 5 minutes
This commit is contained in:
SChernykh
2021-08-24 21:45:19 +02:00
parent cd532965e8
commit 09aedd9f9a
2 changed files with 22 additions and 8 deletions

View File

@@ -105,6 +105,7 @@ public:
bool m_handshakeComplete;
int m_listenPort;
time_t m_lastPeerListRequest;
time_t m_lastAlive;
uv_rwlock_t m_broadcastedHashesLock;
std::set<hash> m_broadcastedHashes;