Commit ee4da951 authored by Christophe Massiot's avatar Christophe Massiot

* mudules/misc/network/ipv4.c: Expand output buffer size as well to avoid

   send() delays.
parent 1aa9ec3a
......@@ -231,12 +231,17 @@ static int OpenUDP( vlc_object_t * p_this )
/* Increase the receive buffer size to 1/2MB (8Mb/s during 1/2s) to avoid
* packet loss caused by scheduling problems */
i_opt = 0x80000;
#if !defined( SYS_BEOS )
i_opt = 0x80000;
if( setsockopt( i_handle, SOL_SOCKET, SO_RCVBUF, (void *) &i_opt,
sizeof( i_opt ) ) == -1 )
msg_Dbg( p_this, "cannot configure socket (SO_RCVBUF: %s)",
strerror(errno));
i_opt = 0x80000;
if( setsockopt( i_handle, SOL_SOCKET, SO_SNDBUF, (void *) &i_opt,
sizeof( i_opt ) ) == -1 )
msg_Dbg( p_this, "cannot configure socket (SO_SNDBUF: %s)",
strerror(errno));
#endif
/* Build the local socket */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment