kmp_rtmp_out_notif_read_timeout

The `kmp_rtmp_out_notif_read_timeout` directive sets the maximum time allowed to read notifications from the Kaltura Media Framework RTMP output stream.

Syntaxkmp_rtmp_out_notif_read_timeout duration;
Defaultnone
Contextstream, stream server
Arguments1

Description

The kmp_rtmp_out_notif_read_timeout directive is utilized within the context of RTMP streaming to define the read timeout duration for notifications related to the stream output. When configured, NGINX will wait for the specified period to read incoming notifications from the RTMP output, after which it will assume that the connection has encountered an issue if no notifications are received.

This directive takes a single argument that specifies the timeout duration. The timeout duration is crucial in maintaining the responsiveness of the streaming service, as it helps prevent indefinite waiting, which may lead to resource exhaustion. If notifications are not received within the stipulated time, NGINX can take necessary actions, such as closing connections or triggering error handling processes, ensuring that the streaming service remains healthy and operational.

Setting this timeout appropriately is essential to strike a balance between performance and resource management; too short a timeout may result in unwanted disconnections due to temporary network delays, while too long a timeout could prolong resource holding in adverse conditions. Adjustments should be made based on the expected network conditions and application requirements.

Config Example

kmp_rtmp_out_notif_read_timeout 30s;

Ensure the specified timeout is long enough to accommodate expected network latencies; too short a timeout may cause premature disconnections.

The timeout should be tested under various network conditions to find the optimal value for production environments.

← Back to all directives