ts_kmp_ctrl_timeout

The `ts_kmp_ctrl_timeout` directive sets the timeout period for controlling the Kaltura Media Protocol (KMP) operations in NGINX.

Syntaxts_kmp_ctrl_timeout number;
Defaultnone
Contextstream, stream server
Arguments1

Description

The ts_kmp_ctrl_timeout directive specifies a timeout value, in seconds, for operations related to the Kaltura Media Protocol (KMP). This directive is essential for defining how long NGINX will wait for a response from KMP before aborting the connection. When the timeout is reached, any outstanding KMP operations will be terminated, ensuring that resources are not indefinitely consumed by stalling requests. This setting is particularly important in media streaming contexts where time-sensitive content delivery is critical, as it helps maintain the responsiveness of the server under load.

To use this directive, the administrator must provide a single argument, which is a numeric value representing the timeout duration in seconds. If set too high, it could result in delayed responses to errors in the KMP processing; if set too low, legitimate operations may be cut off prematurely. Therefore, the selected value should balance user experience and system performance based on the expected network conditions and server capabilities.

Config Example

ts_kmp_ctrl_timeout 30;  # Set a 30-second timeout for KMP controller operations

Ensure that the timeout value is appropriate to avoid cutting off legitimate requests.

Setting the timeout too low might affect user experience during high latency situations, especially in live streaming contexts.

← Back to all directives