mirror of
https://github.com/cloudflare/redoctober.git
synced 2026-01-07 05:56:56 +00:00
Merge pull request #141 from cloudflare/kyle/limit-listener
Remove LimitListener.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user