This commit is contained in:
arvidn 2016-03-13 20:47:50 -04:00
parent 8f14c74be8
commit 58e73c1469
3 changed files with 5 additions and 3 deletions

View File

@ -109,7 +109,7 @@ TORRENT_TEST(session_stats)
, [](int ticks, lt::session& ses) -> bool , [](int ticks, lt::session& ses) -> bool
{ {
ses.post_session_stats(); ses.post_session_stats();
if (ticks > 75) if (ticks > 80)
{ {
TEST_ERROR("timeout"); TEST_ERROR("timeout");
return true; return true;

View File

@ -4829,7 +4829,7 @@ namespace libtorrent
// the last 60 seconds, and we haven't been working on servicing a request // the last 60 seconds, and we haven't been working on servicing a request
// for more than 60 seconds. // for more than 60 seconds.
// but only if we're a seed // but only if we're a seed
d = now - (std::min)((std::max)(m_last_unchoke, m_last_incoming_request) d = now - (std::max)((std::max)(m_last_unchoke, m_last_incoming_request)
, m_last_sent_payload); , m_last_sent_payload);
if (may_timeout if (may_timeout

View File

@ -65,7 +65,9 @@ static struct utp_logger
FILE* utp_log_file; FILE* utp_log_file;
mutex utp_log_mutex; mutex utp_log_mutex;
utp_logger() : utp_log_file(NULL) {} utp_logger() : utp_log_file(NULL) {
utp_log_file = fopen("utp.log", "w+");
}
~utp_logger() ~utp_logger()
{ {
if (utp_log_file) fclose(utp_log_file); if (utp_log_file) fclose(utp_log_file);