arvidn / libtorrent

an efficient feature complete C++ bittorrent implementation

Home Page:http://libtorrent.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Kirill8P opened this issue · 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.

2023.10.13.15.32.00.610_tst2.mp4

Nothing is clear from the video, but it seems to be related #7472
from qBit qbittorrent/qBittorrent#19686 qbittorrent/qBittorrent#19553

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