mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-12 05:02:31 +00:00
* 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:
@@ -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;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user