mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-03 15:08:40 +00:00
libtorrent sync 1429
This commit is contained in:
parent
0585d0930e
commit
053dec6e9e
1 changed files with 4 additions and 2 deletions
|
@ -938,7 +938,8 @@ namespace libtorrent
|
||||||
&& r.start < t->torrent_file().piece_size(r.piece)
|
&& r.start < t->torrent_file().piece_size(r.piece)
|
||||||
&& r.length > 0
|
&& r.length > 0
|
||||||
&& r.length + r.start <= t->torrent_file().piece_size(r.piece)
|
&& r.length + r.start <= t->torrent_file().piece_size(r.piece)
|
||||||
&& m_peer_interested)
|
&& m_peer_interested
|
||||||
|
&& r.length <= t->block_size())
|
||||||
{
|
{
|
||||||
#ifdef TORRENT_VERBOSE_LOGGING
|
#ifdef TORRENT_VERBOSE_LOGGING
|
||||||
(*m_logger) << time_now_string()
|
(*m_logger) << time_now_string()
|
||||||
|
@ -963,7 +964,8 @@ namespace libtorrent
|
||||||
"i: " << m_peer_interested << " | "
|
"i: " << m_peer_interested << " | "
|
||||||
"t: " << (int)t->torrent_file().piece_size(r.piece) << " | "
|
"t: " << (int)t->torrent_file().piece_size(r.piece) << " | "
|
||||||
"n: " << t->torrent_file().num_pieces() << " | "
|
"n: " << t->torrent_file().num_pieces() << " | "
|
||||||
"h: " << t->have_piece(r.piece) << " ]\n";
|
"h: " << t->have_piece(r.piece) << " | "
|
||||||
|
"block_limit: " << t->block_size() << " ]\n";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
++m_num_invalid_requests;
|
++m_num_invalid_requests;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue