]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Disable keepalives for http trackers v1.15.2
authorMatt Joiner <anacrolix@gmail.com>
Mon, 27 Apr 2020 23:15:06 +0000 (09:15 +1000)
committerMatt Joiner <anacrolix@gmail.com>
Mon, 27 Apr 2020 23:31:00 +0000 (09:31 +1000)
Should work around an issue with S3 trackers holding connections open for very long periods.

tracker/http.go

index 33b6dd4cfbf8fb62e70e5df2ee15ded041f0c938..82a23dc1f7cf04d7949ca8f5cc799f3c60f73b20 100644 (file)
@@ -124,6 +124,7 @@ func announceHTTP(opt Announce, _url *url.URL) (ret AnnounceResponse, err error)
                                InsecureSkipVerify: true,
                                ServerName:         opt.ServerName,
                        },
+                       DisableKeepAlives: true,
                },
        }).Do(req)
        if err != nil {