no handshake counts as a connect failure
This commit is contained in:
@@ -3356,10 +3356,12 @@ namespace libtorrent
|
|||||||
++m_ses.m_uninteresting_peers;
|
++m_ses.m_uninteresting_peers;
|
||||||
|
|
||||||
if (ec == error_code(errors::timed_out_inactivity)
|
if (ec == error_code(errors::timed_out_inactivity)
|
||||||
|| ec == error_code(errors::timed_out_no_handshake)
|
|
||||||
|| ec == error_code(errors::timed_out_no_request)
|
|| ec == error_code(errors::timed_out_no_request)
|
||||||
|| ec == error_code(errors::timed_out_no_interest))
|
|| ec == error_code(errors::timed_out_no_interest))
|
||||||
++m_ses.m_timeout_peers;
|
++m_ses.m_timeout_peers;
|
||||||
|
|
||||||
|
if (ec == error_code(errors::timed_out_no_handshake))
|
||||||
|
++m_ses.m_connect_timeouts;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// we cannot do this in a constructor
|
// we cannot do this in a constructor
|
||||||
|
Reference in New Issue
Block a user