From 1bdb6afebd9e2eadeaa555554d866693adc4e3fd Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Thu, 10 Jul 2008 10:58:30 +0000 Subject: [PATCH] fixes to previous connection timeout check-in --- include/libtorrent/peer_connection.hpp | 1 + src/peer_connection.cpp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/include/libtorrent/peer_connection.hpp b/include/libtorrent/peer_connection.hpp index bfc45db5d..5a24e433d 100644 --- a/include/libtorrent/peer_connection.hpp +++ b/include/libtorrent/peer_connection.hpp @@ -600,6 +600,7 @@ namespace libtorrent ptime m_remote_dl_update; // the time when async_connect was called + // or when the incoming connection was established ptime m_connect; // the time when this peer sent us a not_interested message diff --git a/src/peer_connection.cpp b/src/peer_connection.cpp index e8022390d..5ad67f7bb 100644 --- a/src/peer_connection.cpp +++ b/src/peer_connection.cpp @@ -84,6 +84,7 @@ namespace libtorrent , m_requested(min_time()) , m_timeout_extend(0) , m_remote_dl_update(time_now()) + , m_connect(time_now()) , m_became_uninterested(time_now()) , m_became_uninteresting(time_now()) , m_free_upload(0) @@ -187,6 +188,7 @@ namespace libtorrent , m_requested(min_time()) , m_timeout_extend(0) , m_remote_dl_update(time_now()) + , m_connect(time_now()) , m_became_uninterested(time_now()) , m_became_uninteresting(time_now()) , m_free_upload(0)