Merge pull request #141 from cloudflare/kyle/limit-listener

Remove LimitListener.
This commit is contained in:
Kyle Isom
2016-05-06 15:08:26 -07:00

View File

@@ -20,8 +20,6 @@ import (
"strings"
"time"
"golang.org/x/net/netutil"
"github.com/cloudflare/redoctober/core"
"github.com/coreos/go-systemd/activation"
)
@@ -176,11 +174,6 @@ func NewServer(staticPath, addr, caPath string, certPaths, keyPaths []string, us
TLSNextProto: map[string]func(*http.Server, *tls.Conn, http.Handler){},
}
// The core package is not safe to be shared across goroutines so
// this supervisor goroutine reads requests from the process
// channel and dispatches them to core for processes.
lstnr = netutil.LimitListener(lstnr, 1)
return &srv, lstnr, nil
}