kmp_rtmp_in_send_timeout
The `kmp_rtmp_in_send_timeout` directive sets the timeout period for sending RTMP messages in the Kaltura Media Framework.
Description
The kmp_rtmp_in_send_timeout directive specifies the maximum time period (in seconds) that the server will wait for a response when sending RTMP messages. This timeout applies to the interactions established between clients and the server, ensuring that if a client does not respond within the allocated time frame, the connection can be closed or handled accordingly. The value for this directive needs to be defined in seconds and can be customized according to the expected response times of your media applications. A proper configuration of this timeout can help maintain optimal performance and resource management on busy streaming servers.
In scenarios where clients may take longer to respond due to network latency or processing delays, increasing this timeout can prevent unnecessary disconnections. However, setting it too high may result in resources remaining allocated longer than necessary, which could degrade performance over time. System administrators should consider the typical latencies observed in their network environment when configuring this directive. Accurate monitoring and tweaking of the timeout value can aid in achieving a balance between responsiveness and resource management.
Config Example
stream {
server {
kmp_rtmp_in_send_timeout 60s;
}
}Setting the timeout too low may result in frequent disconnections if clients take longer to respond.
Avoid setting non-integer values; the parameter accepts only whole number seconds.