fixes to previous connection timeout check-in

This commit is contained in:
Arvid Norberg 2008-07-10 10:58:30 +00:00
parent d2c53b50d5
commit 1bdb6afebd
2 changed files with 3 additions and 0 deletions

View File

@ -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

View File

@ -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)