* Fixed a potential issue causing high loads while waiting for main thread to exit polling. #2661

* Added 'strings.choke_heuristics.{upload,download}' and extra dummy upload/download heuristics for testings.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1263 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2011-08-06 05:20:18 +00:00
parent 882a64af77
commit ce16621707
3 changed files with 21 additions and 7 deletions
+6 -3
View File
@@ -296,7 +296,8 @@ Number of unchoked upload / download peers regulated on a group basis.
(choke_group.down.heuristics.set,<cg_index>,"heuristics")
Heuristics used for deciding what peers to choke and unchoke, see
'strings.choke_heuristics' for a list of available options.
'strings.choke_heuristics{,_download,_upload}' for a list of available
options.
*/
@@ -304,8 +305,10 @@ Heuristics used for deciding what peers to choke and unchoke, see
void
initialize_command_groups() {
// Move somewhere else?
CMD2_ANY ("strings.choke_heuristics", std::bind(&torrent::option_list_strings, torrent::OPTION_CHOKE_HEURISTICS));
CMD2_ANY ("strings.tracker_mode", std::bind(&torrent::option_list_strings, torrent::OPTION_TRACKER_MODE));
CMD2_ANY ("strings.choke_heuristics", std::bind(&torrent::option_list_strings, torrent::OPTION_CHOKE_HEURISTICS));
CMD2_ANY ("strings.choke_heuristics.uplaod", std::bind(&torrent::option_list_strings, torrent::OPTION_CHOKE_HEURISTICS_UPLOAD));
CMD2_ANY ("strings.choke_heuristics.downlaod", std::bind(&torrent::option_list_strings, torrent::OPTION_CHOKE_HEURISTICS_DOWNLOAD));
CMD2_ANY ("strings.tracker_mode", std::bind(&torrent::option_list_strings, torrent::OPTION_TRACKER_MODE));
CMD2_ANY ("choke_group.list", std::bind(&apply_cg_list));
CMD2_ANY_STRING ("choke_group.insert", std::bind(&apply_cg_insert, std::placeholders::_2));