libtorrent 2.0.9 regression: content after the end of the file is not removed.
Hello! I made three identical files with 1000 text lines in different directories and another file with 500 text lines (exactly the same)+one unique text line. Then created a torrent file and downloaded it to different directories .
libtorrent 1.2.19.0: extra lines cut off, files 100% match. libtorrent 2.0.9.0: extra lines are not cut, files do not match.
I tested three clients qBittorrent 4.5.5 libtorrent 1.2.19, qBittorrent 4.5.5 libtorrent 2.0.9.0, qBittorrent 4.6.9RC2 libtorrent 1.2.19 and qBittorrent 4.6.9RC2 libtorrent 2.0.9.0.
https://github.com/arvidn/libtorrent/assets/129579140/ef54ee70-2277-45c9-a071-e7aac622330f
Nothing is clear from the video, but it seems to be related https://github.com/arvidn/libtorrent/issues/7472 from qBit https://github.com/qbittorrent/qBittorrent/issues/19686 https://github.com/qbittorrent/qBittorrent/issues/19553
The behavior of (automatically) truncating files was changed. It's now up to the client to explicitly truncate files (docs).