add comments to the MaxIdleConnsPerHost tweak

This commit is contained in:
Travis 2017-02-01 12:57:06 -06:00
parent 85a1a71024
commit 25e4a681bd

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()
m.Server.Handler.Version = Version
fmt.Fprintf(m.Stderr, "Pilosa %s\n", Version)