-
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 18 replies
-
I did see a similar question at #881 but there wasn't a solution found there so I opened a new question. I would like to note that this is running on a docker network all running locally currently for testing purposes. |
Beta Was this translation helpful? Give feedback.
-
Your test does seem to be working for me as well, I'll try debugging some more and see if I can find what is it that I'm doing differently. One thing I noticed while debugging was there's a few of these logs, though I'm not sure if it's relevant |
Beta Was this translation helpful? Give feedback.
-
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 workaround we can set the MaxUnverifiedBytes to 0. |
Beta Was this translation helpful? Give feedback.
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…