no handshake counts as a connect failure

This commit is contained in:
Arvid Norberg 2011-02-14 06:37:22 +00:00
parent 247ad31dc0
commit 7d300c807a
1 changed files with 3 additions and 1 deletions

View File

@ -3356,10 +3356,12 @@ namespace libtorrent
++m_ses.m_uninteresting_peers;
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_interest))
++m_ses.m_timeout_peers;
if (ec == error_code(errors::timed_out_no_handshake))
++m_ses.m_connect_timeouts;
#endif
// we cannot do this in a constructor