Skip to content

Commit

Permalink
chore: by default enable max concurrent gw request limit. (#2648)
Browse files Browse the repository at this point in the history
  • Loading branch information
saurav-malani committed Nov 11, 2022
1 parent f2f589c commit d673640
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gateway/configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ func loadConfig() {
config.RegisterDurationConfigVariable(10, &WriteTimeout, false, time.Second, []string{"WriteTimeout", "WriteTimeOutInSec"}...)
config.RegisterDurationConfigVariable(720, &IdleTimeout, false, time.Second, []string{"IdleTimeout", "IdleTimeoutInSec"}...)
config.RegisterIntConfigVariable(524288, &maxHeaderBytes, false, 1, "MaxHeaderBytes")
// default values is '0', which means disabled. So, if `maxActiveClients` is not set. We consider it to be disabled.
config.RegisterIntConfigVariable(0, &maxConcurrentRequests, false, 1, "Gateway.maxConcurrentRequests")
// if set to '0', it means disabled.
config.RegisterIntConfigVariable(50000, &maxConcurrentRequests, false, 1, "Gateway.maxConcurrentRequests")
}

// MaxReqSize is the maximum request body size, in bytes, accepted by gateway web handlers
Expand Down

0 comments on commit d673640

Please sign in to comment.