Browse Source

update default conn pre host

ls 2 weeks ago
parent
commit
c57df4ea0a
1 changed files with 1 additions and 0 deletions
  1. 1 0
      request.go

+ 1 - 0
request.go

@@ -92,6 +92,7 @@ func newRequest(method, uri, certPath, keyPath string, header map[string]string,
 			c.SetDeadline(time.Now().Add(time.Second * reqTimeOut))
 			return c, nil
 		},
+		MaxIdleConnsPerHost:   50,
 		ResponseHeaderTimeout: time.Second * reqTimeOut,
 	}