libtorrent icon indicating copy to clipboard operation
libtorrent copied to clipboard

libtorrent 2.0.9 regression: content after the end of the file is not removed.

Open Kirill8P opened this issue 2 years ago • 2 comments

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

Kirill8P avatar Oct 13 '23 11:10 Kirill8P

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

stalkerok avatar Oct 15 '23 16:10 stalkerok

The behavior of (automatically) truncating files was changed. It's now up to the client to explicitly truncate files (docs).

arvidn avatar Nov 14 '23 14:11 arvidn