From 61302332cfc581bc245c532d4dd4d6d55ff48e66 Mon Sep 17 00:00:00 2001 From: Alex Sharov Date: Mon, 8 Aug 2022 12:38:19 +0700 Subject: [PATCH] Win limit amount of peers per udp packet (#771) --- torrent.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/torrent.go b/torrent.go index 157b44d4..7d32b957 100644 --- a/torrent.go +++ b/torrent.go @@ -1719,7 +1719,7 @@ func (t *Torrent) announceRequest(event tracker.AnnounceEvent) tracker.AnnounceR Event: event, NumWant: func() int32 { if t.wantPeers() && len(t.cl.dialers) > 0 { - return -1 + return 200 // Win has UDP packet limit. See: https://github.com/anacrolix/torrent/issues/764 } else { return 0 } -- 2.44.0