anacrolix / torrent

Full-featured BitTorrent client package and utilities
Mozilla Public License 2.0
5.39k stars 615 forks source link

fix: udp tracker panic #846

Closed monkeyWie closed 12 months ago

monkeyWie commented 1 year ago

fix https://github.com/anacrolix/torrent/issues/845

Some traker servers do not follow the udp traker specification, and the response packet returned is larger than the defined udp buffer size. We need to handle the error instead of panic.

anacrolix commented 12 months ago

Thanks for the fix. I really don't like the error we get here, but I can't argue with the improved behaviour.