don't leave slow-start just because we hit the advertized receive window. uTorrent adjusts its receive window dynamically which may just cause a temporary restriction

This commit is contained in:
arvidn 2018-12-31 15:18:22 +01:00 committed by Arvid Norberg
parent 8ffd524b5f
commit ee1e66e851
1 changed files with 3 additions and 1 deletions

View File

@ -3577,13 +3577,15 @@ void utp_socket_impl::do_ledbat(const int acked_bytes, const int delay
, static_cast<void*>(this), m_mtu, in_flight, int(m_adv_wnd), int(m_cwnd >> 16), acked_bytes);
m_cwnd_full = false;
}
/*
if ((m_cwnd >> 16) >= m_adv_wnd)
{
m_slow_start = false;
m_ssthres = (m_cwnd >> 16);
UTP_LOGV("%8p: cwnd > advertized wnd (%d) slow_start -> 0\n"
, static_cast<void*>(this), m_adv_wnd);
}
*/
}
void utp_stream::bind(endpoint_type const&, error_code&) { }