From 49a3b94c538d5a0645bed7b75ed22da452c7d8ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=B1=E8=88=9E=E8=80=85?= Date: Fri, 7 Jan 2022 17:45:13 +0800 Subject: [PATCH] update http --- WebScan/lib/client.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/WebScan/lib/client.go b/WebScan/lib/client.go index 80f982e..d3ea342 100644 --- a/WebScan/lib/client.go +++ b/WebScan/lib/client.go @@ -34,13 +34,13 @@ func InitHttpClient(ThreadsNum int, DownProxy string, Timeout time.Duration) err tr := &http.Transport{ DialContext: dialer.DialContext, - MaxConnsPerHost: 0, + MaxConnsPerHost: 5, MaxIdleConns: 0, - MaxIdleConnsPerHost: ThreadsNum * 2, + MaxIdleConnsPerHost: 2, IdleConnTimeout: keepAlive, TLSClientConfig: &tls.Config{InsecureSkipVerify: true}, TLSHandshakeTimeout: 5 * time.Second, - DisableKeepAlives: true, + DisableKeepAlives: false, } if DownProxy != "" { if DownProxy == "1" {