limit the number of connections to single host

This commit is contained in:
Todd Gruben 2017-02-01 13:40:12 -05:00 committed by Travis
parent a0d3b67bc8
commit ce3b797172

View file

@ -6,6 +6,7 @@ import (
"fmt"
"io"
"math/rand"
"net/http"
"os"
"os/signal"
"path/filepath"
@ -34,6 +35,7 @@ const (
)
func main() {
http.DefaultTransport.(*http.Transport).MaxIdleConnsPerHost = 64
m := NewMain()
m.Server.Handler.Version = Version
fmt.Fprintf(m.Stderr, "Pilosa %s\n", Version)