comment on incorrect assert

This commit is contained in:
Arvid Norberg 2011-09-10 05:37:18 +00:00
parent 726f89ca99
commit 38a4b58c3a
1 changed files with 2 additions and 0 deletions

View File

@ -116,6 +116,8 @@ namespace libtorrent
else
{
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());
ret.bytes_downloaded = t->block_size() - receive_buffer_size;
}