Why is torrent read lock at CLient level? #547
-
Any specific reason why lock is always at client level and not a torrent level for torrent specific functions? I am facing issues when downloading torrents with a queue size of >= 100. The client seems to hang after sometime. It always hangs when trying to execute, |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 3 replies
-
Mainly as a simplification. There are some features that operate across the whole client, such as storage prioritization and request handling, common trackers, global connection limits etc. If you provide specific examples, like the BytesCompleted method I can check in to it. |
Beta Was this translation helpful? Give feedback.
-
I didn't change the locking, but try |
Beta Was this translation helpful? Give feedback.
-
@anacrolix let me try it with the master. I am not sure how to share the CPU profile. Pls guide me. I can share the code in private gist if you want to take a look |
Beta Was this translation helpful? Give feedback.
-
There is huge contention for mutex lock. Let me know if you want a code walk through. If reading takes too much time. All it is doing is
|
Beta Was this translation helpful? Give feedback.
-
This issue has moved into a private email dialogue. The fix 16c4b08 should directly address the described issue, and some other fixes resulted while working through it. |
Beta Was this translation helpful? Give feedback.
-
We can close this discussion. The main problem is solved and fixed |
Beta Was this translation helpful? Give feedback.
This issue has moved into a private email dialogue. The fix 16c4b08 should directly address the described issue, and some other fixes resulted while working through it.