* Moved http get's user agent stuff to the client. It now uses

"rtorrent/CLIENT_VERSION/LIBRARY_VERSION".

* Using libcurl's timeout, set to 60 seconds, rather than in
TrackerHttp. This should make libcurl try different IP's.

* Minor cleanup of how file priorities are updated.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@594 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2005-11-08 21:14:32 +00:00
parent b28621f839
commit 3db8179274
6 changed files with 30 additions and 7 deletions
+6
View File
@@ -38,6 +38,7 @@
#define RTORRENT_CORE_CURL_STACK_H
#include <list>
#include <string>
#include <sigc++/slot.h>
namespace core {
@@ -64,6 +65,9 @@ class CurlStack {
SlotFactory get_http_factory();
const std::string& user_agent() const { return m_userAgent; }
void set_user_agent(const std::string& s) { m_userAgent = s; }
static void global_init();
static void global_cleanup();
@@ -79,6 +83,8 @@ class CurlStack {
int m_size;
CurlGetList m_getList;
std::string m_userAgent;
};
}