add comments to the MaxIdleConnsPerHost tweak

This commit is contained in:
Travis 2017-02-01 12:57:06 -06:00
parent ab9627012c
commit a35dd5e586

View file

@ -35,7 +35,10 @@ const (
)
func main() {
// Limit the number of connections that a server can make to a single node
// in order to prevent a cluster storm.
http.DefaultTransport.(*http.Transport).MaxIdleConnsPerHost = 64
m := NewMain()
fmt.Fprintf(m.Stderr, "Pilosa %s\n", Build)