You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Continuing testing my GStreamer BitTorrent streaming plugin I've noticed when prioritizing for only one torrent member to be downloaded, by setting lt::top_priority for that one and lt::dont_download for the rest, and saving its last piece to disk that if I try to download its next contiguous file in another session libtorrent will report that such file is not found because it only wrote to disk the prioritized bebmber. Said in another manner, downloading the last piece of a prioritized file which contains data from its adyacent will confound libtorrent into erroneously thinking that it has the piece in its entirety.
Such error doesn't happen all the times, it's a bit unpredictable but I've stumbled upon it.
I do have a pair of ideas on how to fix it, either libtorrent detects that the piece has been partially saved and downloads it again or it could write the remaining data into a special file which contains piece fragments. I'm inclined towards the latter to avoid redundant but the former has the advantage of rechecking things again for sanity.
The text was updated successfully, but these errors were encountered:
Please provide the following information
libtorrent version (or branch):
RC_2_0
platform/architecture: Linux
6.12.9
compiler and compiler version: Clang
19.1.7
Continuing testing my GStreamer BitTorrent streaming plugin I've noticed when prioritizing for only one torrent member to be downloaded, by setting
lt::top_priority
for that one andlt::dont_download
for the rest, and saving its last piece to disk that if I try to download its next contiguous file in another session libtorrent will report that such file is not found because it only wrote to disk the prioritized bebmber. Said in another manner, downloading the last piece of a prioritized file which contains data from its adyacent will confound libtorrent into erroneously thinking that it has the piece in its entirety.Such error doesn't happen all the times, it's a bit unpredictable but I've stumbled upon it.
I do have a pair of ideas on how to fix it, either libtorrent detects that the piece has been partially saved and downloads it again or it could write the remaining data into a special file which contains piece fragments. I'm inclined towards the latter to avoid redundant but the former has the advantage of rechecking things again for sanity.
The text was updated successfully, but these errors were encountered: