O'Reilly logo

NGINX High Performance by Rahul Sharma

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Configuring timeouts

Every request served by NGINX goes through various timeouts. These timeouts, if optimized, can have a considerable impact on the server's performance. Post timeout, the resources are released and, thus, can be utilized for other requests. In the following section, we will configure various timeout directives provided by NGINX.

keepalive

HTTP is a stateless, request-response-based protocol, where the client opens a TCP connection with the server, sends the request, receives the response, and then the server closes the connection to release the resources.

Now, if the client makes multiple requests to the server, for every request, the client opens a connection, transfers the data, and then the connection is closed by the server. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required