From 58e73c146919f50ba7e6277080dde896e7713d57 Mon Sep 17 00:00:00 2001 From: arvidn Date: Sun, 13 Mar 2016 20:47:50 -0400 Subject: [PATCH] fix typo --- simulation/test_swarm.cpp | 2 +- src/peer_connection.cpp | 2 +- src/utp_stream.cpp | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/simulation/test_swarm.cpp b/simulation/test_swarm.cpp index e8d2d9bab..3c5c2d2ad 100644 --- a/simulation/test_swarm.cpp +++ b/simulation/test_swarm.cpp @@ -109,7 +109,7 @@ TORRENT_TEST(session_stats) , [](int ticks, lt::session& ses) -> bool { ses.post_session_stats(); - if (ticks > 75) + if (ticks > 80) { TEST_ERROR("timeout"); return true; diff --git a/src/peer_connection.cpp b/src/peer_connection.cpp index dba4240bc..088c191f5 100644 --- a/src/peer_connection.cpp +++ b/src/peer_connection.cpp @@ -4829,7 +4829,7 @@ namespace libtorrent // the last 60 seconds, and we haven't been working on servicing a request // for more than 60 seconds. // 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); if (may_timeout diff --git a/src/utp_stream.cpp b/src/utp_stream.cpp index aa0a16b52..24532b2a3 100644 --- a/src/utp_stream.cpp +++ b/src/utp_stream.cpp @@ -65,7 +65,9 @@ static struct utp_logger FILE* utp_log_file; 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() { if (utp_log_file) fclose(utp_log_file);