Limiting number of client TLS connections

Reinis Rozitis r at roze.lv
Sun Nov 19 21:02:31 UTC 2023


> sudden surge of requests, existing connections can get enough share of  CPU to be served properly, while excessive connections are rejected

While you can't limit the connections (before the TLS handshake) there is a module to limit the requests per client/ip https://nginx.org/en/docs/http/ngx_http_limit_req_module.html
(and with limit_req_status 444; you can effectively close the connection without returning any response). 

rr




More information about the nginx mailing list