kmp_cc_out_flush_timeout

Sets a timeout for flushing output data in Kaltura Media Framework's NGINX stream module.

Синтаксисkmp_cc_out_flush_timeout timeout;
По умолчаниюnone
Контекстstream, stream server
Аргументы1

Описание

The kmp_cc_out_flush_timeout directive is utilized within the Kaltura Media Framework's NGINX module to control how long the server will wait for output data to be flushed to the client before timing out. This directive is significant in streaming media scenarios where timely delivery of content is essential. By setting an appropriate timeout value, it helps to manage back pressure effectively, ensuring that connections do not stall, which can lead to poor client experience or unnecessary resource usage.

The directive accepts a single argument that specifies the timeout duration. It is relevant for both the stream context and stream server context, making it applicable in various streaming configurations. When this directive is set, the server essentially monitors the output stream and will enforce the timeout period specified; if no data is flushed within this timeframe, the connection may be broken or the operation aborted, as per the module’s error handling configuration. This serves to maintain a responsive streaming service that is resilient to delays and latency issues.

To use this directive effectively, users should consider the typical latency and buffering characteristics of their network and client environments, adjusting the timeout value accordingly to balance promptness with the risks of premature disconnections.

Пример конфига

stream {
    server {
        kmp_cc_out_flush_timeout 30s;
        # other stream settings
    }
}

Setting the timeout too low may result in premature disconnections, especially on slower connections.

If not configured correctly, clients may experience buffering or interruptions in service.

This directive does not affect the control/command channels; it only applies to the output data stream.

← Ко всем директивам