added a setting for max outstanding requests, and a limit for BitComet since it's known to have a very low limit, also added an extension header to specify it. Fixed another unnecessary delay spotted by Tianhao Qiu. Cleaned up the logging class a bit. Fixed a bug that would cause an assert when removing a torrent queued for checking.
This commit is contained in:
@@ -226,7 +226,24 @@ namespace
|
||||
namespace libtorrent
|
||||
{
|
||||
|
||||
std::string identify_client(const peer_id& p)
|
||||
boost::optional<fingerprint> client_fingerprint(peer_id const& p)
|
||||
{
|
||||
// look for azureus style id
|
||||
boost::optional<fingerprint> f;
|
||||
f = parse_az_style(p);
|
||||
if (f) return f;
|
||||
|
||||
// look for shadow style id
|
||||
f = parse_shadow_style(p);
|
||||
if (f) return f;
|
||||
|
||||
// look for mainline style id
|
||||
f = parse_mainline_style(p);
|
||||
if (f) return f;
|
||||
return f;
|
||||
}
|
||||
|
||||
std::string identify_client(peer_id const& p)
|
||||
{
|
||||
peer_id::const_iterator PID = p.begin();
|
||||
boost::optional<fingerprint> f;
|
||||
|
Reference in New Issue
Block a user