Skip to content

P2P transfer stalled while webseeding #916

Answered by aritra24
aritra24 asked this question in Q&A
Discussion options

You must be logged in to vote

I was able to find the issue, I believe it's a bug, here while ordering pieces one of the params used to sort is if iavailability < javailability then i is prioritised higher. But this breaks when iavailability is zero for a large number of pieces. Since they might consume the entirety of MaxUnverifiedBytes for the torrent. Thus freezing up until a large enough number of pieces become available such that atleast one of the pieces fits inside the limit of MaxUnverifiedBytes. I believe either the sorting algo needs to account for a zero availability piece or the ordering should skip past all pieces that have no availability. I've raised a sample PR for it in case it's acceptable. As a worka…

Replies: 3 comments 18 replies

Comment options

You must be logged in to vote
5 replies
@anacrolix
Comment options

@aritra24
Comment options

@anacrolix
Comment options

@aritra24
Comment options

@anacrolix
Comment options

Comment options

You must be logged in to vote
10 replies
@aritra24
Comment options

@aritra24
Comment options

@aritra24
Comment options

@anacrolix
Comment options

@aritra24
Comment options

Comment options

You must be logged in to vote
3 replies
@anacrolix
Comment options

@anacrolix
Comment options

@aritra24
Comment options

Answer selected by anacrolix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants