* Set allowed encodings for tracker and http requests.

* Fixed two valgrind errors in the ChokeManager code.

* Added 'seeding' view on key 8. Remeber to fix the man page.

* Fixed an exception being thrown in ChokeManager::cycle(...) due to a
missing range check on the number of unchokes we do.

* Moved choke/queued state to a new ChokeManagerNode class.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@869 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2007-03-16 23:22:51 +00:00
parent f43cdad650
commit 3ef8384c38
4 changed files with 8 additions and 3 deletions
+1
View File
@@ -82,6 +82,7 @@ CurlGet::start() {
curl_easy_setopt(m_handle, CURLOPT_FOLLOWLOCATION, 1);
curl_easy_setopt(m_handle, CURLOPT_MAXREDIRS, 5);
curl_easy_setopt(m_handle, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4);
curl_easy_setopt(m_handle, CURLOPT_ENCODING, "");
m_stack->add_get(this);
}
+6
View File
@@ -206,6 +206,12 @@ main(int argc, char** argv) {
"view_sort_new = hashing,state_changed\n"
"view_sort_current = hashing,state_changed\n"
"view_add = seeding\n"
"view_filter = seeding,started,complete\n"
"view_filter_on = seeding,start,stop\n"
"view_sort_new = seeding,state_changed\n"
"view_sort_current = seeding,state_changed_reverse\n"
"schedule = view_main,10,10,view_sort=main,20\n"
"schedule = view_name,10,10,view_sort=name,20\n"
// "schedule = view_started,10,10,view_sort=started,5\n"
-3
View File
@@ -50,9 +50,6 @@ public:
typedef sigc::slot2<void, const std::string&, const std::string&> SlotStringPair;
typedef sigc::slot2<void, int, int> SlotIntPair;
OptionParser() {}
~OptionParser() { m_container.clear(); }
void insert_flag(char c, Slot s);
void insert_option(char c, SlotString s);
void insert_option_list(char c, SlotStringPair s);
+1
View File
@@ -78,6 +78,7 @@ ElementDownloadList::ElementDownloadList() :
m_bindings['5'] = sigc::bind(sigc::mem_fun(*this, &ElementDownloadList::receive_change_view), "complete");
m_bindings['6'] = sigc::bind(sigc::mem_fun(*this, &ElementDownloadList::receive_change_view), "incomplete");
m_bindings['7'] = sigc::bind(sigc::mem_fun(*this, &ElementDownloadList::receive_change_view), "hashing");
m_bindings['8'] = sigc::bind(sigc::mem_fun(*this, &ElementDownloadList::receive_change_view), "seeding");
m_bindings[KEY_UP] = m_bindings['P' - '@'] = sigc::mem_fun(*this, &ElementDownloadList::receive_prev);
m_bindings[KEY_DOWN] = m_bindings['N' - '@'] = sigc::mem_fun(*this, &ElementDownloadList::receive_next);