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)