return &t.cl.config.Callbacks
}
+var WebseedHttpClient = &http.Client{
+ Transport: &http.Transport{
+ MaxConnsPerHost: 10,
+ },
+}
+
func (t *Torrent) addWebSeed(url string) {
if t.cl.config.DisableWebseeds {
return
},
client: webseed.Client{
// Consider a MaxConnsPerHost in the transport for this, possibly in a global Client.
- HttpClient: http.DefaultClient,
+ HttpClient: WebseedHttpClient,
Url: url,
},
activeRequests: make(map[Request]webseed.Request, maxRequests),