store_http_read_req_timeout
The `store_http_read_req_timeout` directive sets the timeout duration for reading HTTP requests in the Kaltura Media Framework's NGINX module.
Description
The store_http_read_req_timeout directive is specifically designed for managing the read request timeout when the Kaltura Media Framework is running on NGINX. This directive plays a crucial role in ensuring that the server does not hang indefinitely waiting for a client to send the complete HTTP request. When a client initiates a request, the server begins to read the incoming data. If the data is not received within the defined timeout period, the server will terminate the connection, preventing unnecessary resource allocation for long-waiting operations.
This directive takes one argument that specifies the timeout duration, which can be set in seconds. Adjusting the timeout value can help in optimizing resource utilization and improving server response efficiency, especially in scenarios where clients may have slow connections or latency issues. Additionally, leveraging this directive properly can help in avoiding situations that lead to server overload or performance degradation due to slow or unresponsive clients.
To configure this directive, it should be placed in either the HTTP context or within the server/location blocks of the NGINX configuration file. This allows fine-tuning of how different parts of the server handle client requests based on their respective needs.
Config Example
store_http_read_req_timeout 30;
Ensure that the timeout value is appropriate for your application needs; setting it too low may lead to valid requests being dropped.
Be cautious when setting the timeout value globally versus at specific server or location levels to avoid unintended configurations.