server: Add connection rate limiter for server. (#1977)

This commit is contained in:
Harshavardhana
2016-06-26 03:18:07 -07:00
committed by Anand Babu (AB) Periasamy
parent 57146fbbb8
commit 936a916e78
4 changed files with 78 additions and 0 deletions

View File

@@ -70,6 +70,8 @@ func configureServerHandler(srvCmdConfig serverCmdConfig) http.Handler {
// List of some generic handlers which are applied for all
// incoming requests.
var handlerFns = []HandlerFunc{
// Limits the number of concurrent http requests.
setRateLimitHandler,
// Redirect some pre-defined browser request paths to a static
// location prefix.
setBrowserRedirectHandler,