Optimize streaming from Real-Debrid
This commit is contained in:
@@ -91,11 +91,9 @@ func NewHTTPClient(
|
||||
|
||||
client.client.Transport = &http.Transport{
|
||||
ResponseHeaderTimeout: time.Duration(timeoutSecs) * time.Second,
|
||||
MaxIdleConns: 0,
|
||||
MaxIdleConnsPerHost: 32,
|
||||
MaxConnsPerHost: 32,
|
||||
DialContext: func(ctx context.Context, network, address string) (net.Conn, error) {
|
||||
return dialer.Dial(network, address)
|
||||
},
|
||||
IdleConnTimeout: 90 * time.Second,
|
||||
}
|
||||
|
||||
if forceIPv6 {
|
||||
|
||||
Reference in New Issue
Block a user