From 7d300c807a370e093879d1a44cefa63833b3ab72 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Mon, 14 Feb 2011 06:37:22 +0000 Subject: [PATCH] no handshake counts as a connect failure --- src/peer_connection.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/peer_connection.cpp b/src/peer_connection.cpp index c53594e82..f8cbbcca9 100644 --- a/src/peer_connection.cpp +++ b/src/peer_connection.cpp @@ -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