mirror of
https://git.sr.ht/~joren/streamrip-go
synced 2026-10-16 13:57:25 +02:00
performance: tune shared HTTP transport for concurrent CDN downloads
This commit is contained in:
1 parent
9e27ba842f
commit
945695cea7
9 files changed
+58
-24
No files matched your search
@@ -62,7 +62,7 @@ type Client struct {
|
||||
}
|
||||
|
||||
func New(cfg *config.Config) *Client {
|
||||
httpClient := netutil.NewHTTPClient(30*time.Second, cfg.Session.Downloads.VerifySSL)
|
||||
httpClient := netutil.NewHTTPClient(30*time.Second, cfg.Session.Downloads.VerifySSL, cfg.Session.Downloads.MaxConnections)
|
||||
if jar, err := cookiejar.New(nil); err == nil {
|
||||
httpClient.Jar = jar
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user