1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-03-04 10:38:13 +00:00

#1548 Peers rapidly connect and reconnect after removing fast support.

This commit is contained in:
Mitchell Livingston 2008-12-02 00:37:10 +00:00
parent 1a3bb8f3cf
commit c2b6fde6dd

View file

@ -1128,6 +1128,7 @@ messageLengthIsCorrect( const tr_peermsgs * msg,
case BT_HAVE:
case BT_SUGGEST:
return len == 5;
case BT_BITFIELD:
return len == ( msg->torrent->info.pieceCount + 7u ) / 8u + 1u;