notify_update_timeout

Specifies the timeout duration for notifying clients about updates in the NGINX RTMP module.

Syntaxnotify_update_timeout time;
Defaultnone
Context
Arguments1

Description

The notify_update_timeout directive is used within the NGINX RTMP module to control the timeout for notifications sent to clients during media streaming sessions. This parameter defines the maximum duration in milliseconds that the server will wait to send an update notification when a client is connected to a streaming session. When this timeout is reached, the server assumes that the client is no longer able to receive updates and can take appropriate actions such as stopping the notifications or terminating the session. This directive is particularly useful for maintaining optimal resource usage and ensuring that idle connections do not unnecessarily consume server resources. The timeout value can be adjusted based on specific application needs and the expected performance characteristics of client applications.

Config Example

notify_update_timeout 5000;  # Sets the update notification timeout to 5000 milliseconds (5 seconds)

Setting a timeout value that is too short may lead to premature disconnections if clients are slow to respond.

If this directive is not set, the server may use default timeout values, which may not be optimal for your streaming application.

← Back to all directives