Conversation
|
This is a great idea. Could make Can you link to some reference/example from libtorrent about the decisions involved in how to operate in anonymous mode? |
the main idea is to send as little information as possible so currently, the http user-agent is curl/7.81.0 search "anonymous mode" in libtorrent probably we should add more comments to document this we also should mention limitations of this approach possible workaround: related concepts: force encryption, VPN, I2P I2P can provide much stronger anonymity than this "anonymous mode" (sorry i have no time for this now, just sharing my thoughts) |
28b4c1b to
f919af5
Compare
I followed the instructions at https://github.com/golangci/golangci-lint-action.
_pendingPieces.Add(0) was called without holding the client lock and without updating the piece request order, causing two issues: 1. Data race with timer goroutines accessing the roaring bitmap 2. Panic in checkPendingPiecesMatchesRequestOrder due to _pendingPieces and requestOrder being out of sync Replace the direct bitmap manipulation with updatePiecePriority(0, ...) which properly updates both _pendingPieces and the piece request order while holding the client lock. Co-authored-by: info@weblogix.biz <admin@10gbps.weblogix.it> Co-authored-by: Matt Joiner <anacrolix@gmail.com>
No description provided.