]> git.sesse.net Git - vlc/commitdiff
* mudules/misc/network/ipv4.c: Expand output buffer size as well to avoid
authorChristophe Massiot <massiot@videolan.org>
Wed, 14 Sep 2005 17:24:32 +0000 (17:24 +0000)
committerChristophe Massiot <massiot@videolan.org>
Wed, 14 Sep 2005 17:24:32 +0000 (17:24 +0000)
   send() delays.

modules/misc/network/ipv4.c

index b2794acb12d0a5770064c8f8731a9841b77460d5..43a52b48bf3ee184bc56741e8ce9c02395ff450b 100644 (file)
@@ -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 */