Exposing SO_RCVBUF / SO_SNDBUF

For ‘bursty’ streams it can be necessary to increase the buffer size of the UDP socket (SO_RCVBUF / SO_SNDBUF).

The default buffer size can be changed externally but only for the whole OS, which is sometimes too granular. Some media frameworks allow the caller to specify it or set it in terms of the bitrate. Mediasoup currently doesn’t seem to touch it at all.

Do you think it would be useful to expose it as a transport option?

1 Like

Linking to the original issue: allow setting receive buffer size · Issue #554 · versatica/mediasoup · GitHub

Didn’t want to comment on GitHub, but we came to the same conclusion and just tweaked buffers at kernel level. I agree an option would be useful.

1 Like

Since this is a legitimate and accepted feature request, let’s please discuss it in the GH issue that you created: