kmp_cc_out_ctrl_read_timeout

The `kmp_cc_out_ctrl_read_timeout` directive configures the read timeout for Kaltura Media Framework control connections in NGINX streams.

Syntaxkmp_cc_out_ctrl_read_timeout time_value;
Default30s
Contextstream, stream server
Arguments1

Description

The kmp_cc_out_ctrl_read_timeout directive is used to specify the amount of time that NGINX will wait for data on a control connection before timing out. This is particularly important in the context of the Kaltura Media Framework, where control connections handle the orchestration of media components and their interactions. If a control connection remains idle for longer than the specified timeout period, NGINX will close the connection, allowing for resource reclamation and preventing server overload due to hanging connections.

This directive accepts a single argument, which should be a time value represented in the standard NGINX time format (milliseconds, seconds, minutes, etc.). Users can set this value based on their application's latency characteristics and expected interaction patterns. Setting this timeout too low may result in premature connection closures, while setting it too high could lead to resource exhaustion during periods of inactivity.

Config Example

stream {
    server {
        listen 1234;
        kmp_cc_out_ctrl_read_timeout 60s;
    }
}

Ensure the timeout value is realistic based on expected network delays or application performance.

Setting the timeout too low may disrupt legitimate control connection operations.

← Back to all directives