kmp_timeout
The `kmp_timeout` directive specifies the time limit for Kaltura Media Protocol (KMP) operations.
Description
The kmp_timeout directive sets a duration that establishes a timeout limit for operations conducted under the Kaltura Media Protocol (KMP). This means that any request to KMP that exceeds this specified duration will be aborted, thus ensuring that processes do not hang indefinitely and thereby allowing for better resource management and responsiveness in media streaming applications. The timeout is particularly crucial for operations in live video streaming where lag or delays can adversely affect the viewer experience.
This directive accepts an argument that specifies the duration for the timeout in seconds. If the process does not complete within this timeframe, it is terminated. This protective feature helps developers and system administrators maintain healthy server operations and user experiences, especially in scenarios where network conditions might vary or when working with high-load applications. Administrators can adjust the timeout duration based on their system's capabilities and the expected network environment to optimize performance.
Setting a timeout that's too low may lead to legitimate requests being prematurely aborted, while a timeout that is too high may result in prolonged waiting times for clients when errors occur. Therefore, careful consideration should be taken when determining the appropriate value for kmp_timeout. It's important to remember that this setting is specific to Kaltura Media Framework operations and won't impact other NGINX operations or modules.
Config Example
kmp_timeout 30;
Ensure the timeout value is reasonable; setting it too low may cause legitimate requests to time out.
The directive should only be applied in the context of Kaltura Media Protocol and does not affect other modules.