store_http_write_resp_timeout

The `store_http_write_resp_timeout` directive configures the timeout for writing HTTP responses in the Kaltura Media Framework NGINX Module.

Syntaxstore_http_write_resp_timeout time;
Defaultnone
Context
Arguments1

Description

The store_http_write_resp_timeout directive is utilized in the Kaltura Media Framework NGINX Module to specify the maximum duration that NGINX will wait for an operation to write an HTTP response. This timeout ensures that the server does not hang indefinitely while attempting to send data back to the client. If the response cannot be written within the specified timeframe, NGINX will abort the operation, which can help in maintaining the responsiveness of the server and freeing up resources for other operations.

The value for this directive should be given in a time format, which can include seconds, minutes, etc. The response timeout setting is especially crucial in streaming applications and media delivery systems, where timely data transmission is critical for maintaining user experience and minimizing buffering. The proper use of this directive can significantly impact the performance of media streaming and delivery by preventing excessive delays in response writing.

To apply this directive, it must be placed within the relevant context of the NGINX configuration files where media responses are defined, effectively controlling the behavior of the server during media consumption scenarios. Depending on the specific needs of the deployment, the timeout value can be adjusted accordingly to balance between server load and user experience.

Config Example

store_http_write_resp_timeout 30s;

Setting a timeout that is too short may lead to premature termination of valid responses, especially in high-latency network environments.

Ensure that the timeout value is appropriate based on the expected response sizes and network conditions to avoid frequent write aborts.

← Back to all directives