mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-10-07 14:49:21 +00:00
* Added the ability to set the timeout in torrent::Http. Torrent
downloads now have longer timeout than tracker requests. * Bound the '*' key in tracker list to disable a tracker. * Added PollKQueue placeholder, implementation will come later. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@598 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -84,8 +84,11 @@ CurlGet::start() {
|
||||
curl_easy_setopt(m_handle, CURLOPT_URL, m_url.c_str());
|
||||
curl_easy_setopt(m_handle, CURLOPT_WRITEFUNCTION, &curl_get_receive_write);
|
||||
curl_easy_setopt(m_handle, CURLOPT_WRITEDATA, this);
|
||||
curl_easy_setopt(m_handle, CURLOPT_CONNECTTIMEOUT, 60);
|
||||
curl_easy_setopt(m_handle, CURLOPT_TIMEOUT, 360);
|
||||
|
||||
if (m_timeout != 0) {
|
||||
curl_easy_setopt(m_handle, CURLOPT_CONNECTTIMEOUT, 60);
|
||||
curl_easy_setopt(m_handle, CURLOPT_TIMEOUT, m_timeout);
|
||||
}
|
||||
|
||||
curl_easy_setopt(m_handle, CURLOPT_FORBID_REUSE, 1);
|
||||
curl_easy_setopt(m_handle, CURLOPT_NOSIGNAL, 1);
|
||||
|
||||
Reference in New Issue
Block a user