From 2f26d62f1ce8e9f8ccfccb6db963f74c4477c654 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sat, 30 Jun 2012 08:06:20 +0000 Subject: [PATCH] one more utp fix --- src/utp_stream.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/utp_stream.cpp b/src/utp_stream.cpp index 1f39f0f23..be40d3a63 100644 --- a/src/utp_stream.cpp +++ b/src/utp_stream.cpp @@ -1861,8 +1861,6 @@ bool utp_socket_impl::resend_packet(packet* p, bool fast_resend) p->mtu_probe = false; // we got multiple acks for the packet before our probe, assume // it was dropped because it was too big - // if the packet we just lost was smaller than the mtu - // ignore it m_mtu_ceiling = p->size - 1; update_mtu_limits(); } @@ -2017,6 +2015,7 @@ void utp_socket_impl::ack_packet(packet* p, ptime const& receive_time TORRENT_ASSERT(p->mtu_probe); // our mtu probe was acked! m_mtu_floor = (std::max)(m_mtu_floor, p->size); + if (m_mtu_ceiling < m_mtu_floor) m_mtu_ceiling = m_mtu_floor; update_mtu_limits(); }