no longer expects requests to be handled in fifo order

This commit is contained in:
Arvid Norberg 2006-02-23 10:53:07 +00:00
parent 5ea9d2eab4
commit 410af930a7
1 changed files with 5 additions and 2 deletions

View File

@ -1020,6 +1020,7 @@ namespace libtorrent
if (b != m_download_queue.end()) if (b != m_download_queue.end())
{ {
/*
for (i = m_download_queue.begin(); for (i = m_download_queue.begin();
i != b; ++i) i != b; ++i)
{ {
@ -1032,7 +1033,7 @@ namespace libtorrent
// be requested from other peers // be requested from other peers
picker.abort_download(*i); picker.abort_download(*i);
} }
*/
#ifdef TORRENT_VERBOSE_LOGGING #ifdef TORRENT_VERBOSE_LOGGING
(*m_logger) << to_simple_string(second_clock::universal_time()) (*m_logger) << to_simple_string(second_clock::universal_time())
<< " <== PIECE [ piece: " << p.piece << " | " << " <== PIECE [ piece: " << p.piece << " | "
@ -1040,12 +1041,14 @@ namespace libtorrent
"s: " << p.start << " | " "s: " << p.start << " | "
"l: " << p.length << " ]\n"; "l: " << p.length << " ]\n";
#endif #endif
/*
// remove the request that just finished // remove the request that just finished
// from the download queue plus the // from the download queue plus the
// skipped blocks. // skipped blocks.
m_download_queue.erase(m_download_queue.begin() m_download_queue.erase(m_download_queue.begin()
, boost::next(b)); , boost::next(b));
*/
m_download_queue.erase(b);
send_block_requests(); send_block_requests();
} }
else else