send_udp_buf
The `send_udp_buf` directive configures the send buffer size for UDP connections in the NGINX SRT module.
Description
The send_udp_buf directive specifies the size of the send buffer for UDP packets in the NGINX SRT module, which is essential for effectively managing data transmission over the SRT protocol. This buffer size can directly affect network performance and the efficiency of data transfer, especially when dealing with high-throughput streaming content. By adjusting the size of the send buffer, users can optimize transmission rates and reduce the chance of packet loss, particularly in conditions where bandwidth may be variable or limited.
The parameter for send_udp_buf should be specified in bytes and represents the maximum amount of data that can be buffered for sending over UDP before it is sent out to the network. Setting this value appropriately is crucial for scenarios that require low latency and high reliability, typical for real-time applications such as video streaming. By fine-tuning the buffer size, administrators can ensure smoother operations and minimized delays while still catering to the application’s throughput requirements.
Config Example
send_udp_buf 16384;
Setting the buffer size too low may result in packet loss, especially under load.
Setting the buffer size too high can lead to increased latency due to longer queue times.
The value must be an integer representing bytes; non-integer values will cause a configuration error.