Limit number of connections upto system maxlimit (#5109)

This commit is contained in:
Harshavardhana
2017-12-20 13:30:14 +05:30
committed by Nitish Tiwari
parent 84fc78d60f
commit 1f77708a30
8 changed files with 487 additions and 1 deletions
+2
View File
@@ -85,6 +85,8 @@ func configureServerHandler(endpoints EndpointList) (http.Handler, error) {
// List of some generic handlers which are applied for all incoming requests.
var handlerFns = []HandlerFunc{
// Ratelimit the incoming requests using a token bucket algorithm
setRateLimitHandler,
// Validate all the incoming paths.
setPathValidityHandler,
// Network statistics