From 38a4b58c3a6731eff2a975868059b232381908b1 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sat, 10 Sep 2011 05:37:18 +0000 Subject: [PATCH] comment on incorrect assert --- src/http_seed_connection.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/http_seed_connection.cpp b/src/http_seed_connection.cpp index 3361ed94c..0bca75fc1 100644 --- a/src/http_seed_connection.cpp +++ b/src/http_seed_connection.cpp @@ -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; }