kmp_rtmp_out_notif_timeout

The `kmp_rtmp_out_notif_timeout` directive sets the timeout duration for notifications in RTMP streaming sessions within the Kaltura Media Framework.

Syntaxkmp_rtmp_out_notif_timeout duration;
Defaultnone
Contextstream, stream server
Arguments1

Description

The kmp_rtmp_out_notif_timeout directive configures the timeout period for notifications related to the RTMP output in streaming contexts. This timeout specifies how long the server should wait for an acknowledgment of a notification before considering it as not responded, which can aid in managing the health of streaming sessions.

When set, the server will monitor the output notifications sent to the client and will use this timeout to determine whether to resend notifications in case the client does not respond within the specified duration. This can help in maintaining a smooth streaming experience and can prevent the server from hanging due to unresponsive clients. The value provided for this directive should be a duration, formatted according to NGINX's time syntax, such as 30s for 30 seconds.

In deployment scenarios, particularly in environments with variable network conditions, adjusting the kmp_rtmp_out_notif_timeout can be essential for optimizing how the server handles notification timeouts. A too-short timeout could lead to excessive retries and failures, while a too-long timeout may delay recovery operations in case of dropped connections.

Config Example

stream {
    server {
        kmp_rtmp_out_notif_timeout 30s;
    }
}

Ensure that the timeout duration is appropriate for your application's performance and network conditions; overly short timeouts can cause unnecessary retries or failures.

This directive should only be used in the context of a stream server, as it is not applicable outside of it.

← Back to all directives