Sfoglia il codice sorgente

update default conn pre host

ls 2 settimane fa
parent
commit
c57df4ea0a
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  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,
 	}