We allow up to 'Timeout' seconds to establish a connection. We now also allow an additional 'Timeout' seconds for the handshake to complete before the connection is discarded.
A recent change made it so that peers who are in the handshaking phase are no longer counted as 'connected', so the timeout which disconnects peers who don't send messages within a reasonable amount of time doesn't apply, and prior to this commit the connection timeout only applied to the actual Socket.Connect.
We allow up to 'Timeout' seconds to establish a connection. We now also allow an additional 'Timeout' seconds for the handshake to complete before the connection is discarded.
A recent change made it so that peers who are in the handshaking phase are no longer counted as 'connected', so the timeout which disconnects peers who don't send messages within a reasonable amount of time doesn't apply, and prior to this commit the connection timeout only applied to the actual Socket.Connect.