This commit is contained in:
Arvid Norberg
2005-08-25 13:11:39 +00:00
parent 663764a49a
commit 52e9eadb4e
15 changed files with 73 additions and 74 deletions

View File

@@ -64,13 +64,13 @@ namespace libtorrent
, std::string const& hostname
, unsigned short port
, boost::weak_ptr<request_callback> c
, const http_proxy& http_proxy)
, const http_settings& stn)
: tracker_connection(c)
, m_request_time(second_clock::universal_time())
, m_request(req)
, m_transaction_id(0)
, m_connection_id(0)
, m_http_proxy(http_proxy)
, m_settings(stn)
, m_attempts(0)
{
m_name_lookup = dns_lookup(hostname.c_str(), port);
@@ -85,7 +85,7 @@ namespace libtorrent
time_duration d = second_clock::universal_time() - m_request_time;
return (m_transaction_id != 0
&& m_connection_id != 0)
|| d > seconds(m_http_proxy.tracker_timeout);
|| d > seconds(m_settings.tracker_timeout);
}
bool udp_tracker_connection::tick()