Closed AskAlexSharov closed 1 year ago
This looks related to https://github.com/anacrolix/torrent/issues/712, which comes out of an issue with Windows reporting UDP warnings as errors. I believe it's a longstanding issue and I think the Go core needs to address it.
The example announce response in https://github.com/ledgerwatch/erigon/issues/4674#issuecomment-1178356276 has 200 peers. It may be that that particular tracker is not using a smarter default for the NumWant field for UDP announces, which anacrolix/torrent is probably setting to -1, here: https://github.com/anacrolix/torrent/blob/75cc4e98d4ae847b990d5a4292ed0deafa2edb92/torrent.go#L1712-L1718. You could try setting that to a specific value instead of -1, such as 200 (which appeared to work in the comment), or 50 or 100.
Did this fix work for you @AskAlexSharov ? I could have sworn I added a check to automatically limit NumWant, maybe it's in a branch.
Seems yes… thank you
trace
also user noticed announce with many peers: https://github.com/ledgerwatch/erigon/issues/4674#issuecomment-1178356276
Our setup: 100 torrents, EstablishedConnsPerTorrent=10
Link to original issue: https://github.com/ledgerwatch/erigon/issues/4674