never set cwnd to less than mtu on time-out

This commit is contained in:
Arvid Norberg 2012-06-25 05:39:36 +00:00
parent 34694bf91f
commit c24b372191
1 changed files with 1 additions and 1 deletions

View File

@ -2911,7 +2911,7 @@ void utp_socket_impl::tick(ptime const& now)
{
// this is just a timeout because this direction of
// the stream is idle. Don't reset the cwnd, just decay it
m_cwnd = m_cwnd * 2 / 3;
m_cwnd = (std::max)(m_cwnd * 2 / 3, boost::int64_t(m_mtu) << 16);
}
else
{