forked from premiere/premiere-libtorrent
comment on incorrect assert
This commit is contained in:
parent
726f89ca99
commit
38a4b58c3a
|
@ -116,6 +116,8 @@ namespace libtorrent
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
int receive_buffer_size = receive_buffer().left() - m_parser.body_start();
|
int receive_buffer_size = receive_buffer().left() - m_parser.body_start();
|
||||||
|
// TODO: in chunked encoding mode, this assert won't hold
|
||||||
|
// the chunk headers should be subtracted from the receive_buffer_size
|
||||||
TORRENT_ASSERT(receive_buffer_size <= t->block_size());
|
TORRENT_ASSERT(receive_buffer_size <= t->block_size());
|
||||||
ret.bytes_downloaded = t->block_size() - receive_buffer_size;
|
ret.bytes_downloaded = t->block_size() - receive_buffer_size;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue