merged todo comment from RC_0_16

This commit is contained in:
Arvid Norberg 2013-09-18 18:48:01 +00:00
parent dfaddedc6f
commit 86864b0a0c
1 changed files with 4 additions and 1 deletions

View File

@ -240,7 +240,7 @@ struct utp_socket_impl
, m_written(0)
, m_receive_buffer_size(0)
, m_read_buffer_size(0)
, m_in_buf_size(100 * 1024 * 1024)
, m_in_buf_size(1024 * 1024)
, m_in_packets(0)
, m_out_packets(0)
, m_send_delay(0)
@ -2227,6 +2227,9 @@ void utp_socket_impl::incoming(boost::uint8_t const* buf, int size, packet* p, p
memcpy(p->buf, buf, size);
}
// save this packet until the client issues another read
// TODO: 4 There's currently no limit on how many packets we save. In the case of the
// client setting a download rate limit, we may store incoming packets indefinitely!
// Right now, we rely on the other end honoring the advertised receive window.
m_receive_buffer.push_back(p);
m_receive_buffer_size += p->size - p->header_size;