]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Win limit amount of peers per udp packet (#771)
authorAlex Sharov <AskAlexSharov@gmail.com>
Mon, 8 Aug 2022 05:38:19 +0000 (12:38 +0700)
committerGitHub <noreply@github.com>
Mon, 8 Aug 2022 05:38:19 +0000 (15:38 +1000)
torrent.go

index 157b44d4fa3a54d6c210df1eacb0a1b494693b41..7d32b957c88a42a40b8dd73bcc7f740fea584500 100644 (file)
@@ -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
                        }