[vlc-devel] [PATCH] network: export SO_RCVBUF & SR_SNDBUF as config options

Tzu-Jung Lee roylee17 at gmail.com
Mon Aug 12 20:44:15 CEST 2013

Hi Steinar,

On Tue, Aug 13, 2013 at 1:40 AM, Steinar H. Gunderson
<sgunderson at bigfoot.com> wrote:
> On Tue, Aug 13, 2013 at 01:31:00AM +0800, Tzu-Jung Lee wrote:
>> This patch allows user to overrite default values set by VLC on our
>> Linux system, though I haven't managed to build a Windows version
>> and give it a try.
> Note that in some cases, you actually want to _reduce_ this value from the
> default, so that the burst size becomes smaller.

I believe it's case by case :-). And that's why I think it make sense
to export them
as configs.

> The default for VLC (at least on Linux) should simply be to leave it alone,
> though, as Linux has socket buffer size auto-tuning these days.

Leave it alone for Linux probably will be fine since we can still manipulate the
system-wise default values if we have to.

The setsocketopt is portable, and work for windows platforms where I can't find
equivalent system-wise settings. A MaxDgramBuffering is available for
'sending' packets,
but no such settings for receiving packets. We experience packet loss
badly on windows platform.
We did some experiments with IPERF and NC on Win 7, and found the that
with a 512 KB RCVBUF,
packets are dropped from time to time even when the bit-rate is 1MBps low.

(I haven't managed to build a Windows version of VLC with a larger
buffer for verification though.)


> /* Steinar */
> --
> Homepage: http://www.sesse.net/
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> http://mailman.videolan.org/listinfo/vlc-devel

More information about the vlc-devel mailing list