Nginx keepalive_requests – What value to use for unlimited

keepalivenginxreverse-proxy

We are using an nginx backend behind a nginx proxy.

We use upstream keepalives.

They work quite nicely.

We were wondering, what value would we set keepalive_requests on the backend to set the maximum number of keepalive requests to unlimited?

Thanks!

Best Answer

There is no special value to mean unlimited. Use some big number (up to 2147483647 on 32-bit platforms) instead.