Revision c743f5e...

Go back to digest for 6th April 2014

Optimization in Networking Tools

Juan Palacios committed changes in [libktorrent] src/peer/peer.cpp:

Check wrong metadata_size values during peer extended handshake

Sometimes, some peers give us a value too large for metadata_size during
the handshake process. Those _extremely high_ values were the root (or
part of) of those random hangs while downloading magnets that some of us
were experiencing lately.

This patch adds a check to close the connection with the peers that send
us those metadata_size values during the handshake process. Now, the
maximum value allowed for the metadata is 4MiB.

File Changes

Modified 1 files
  • src/peer/peer.cpp
1 files changed in total