Contents of /trunk/d4x/patches/d4x-2.5.7.1-speed.patch
Parent Directory | Revision Log
Revision 397 -
(show annotations)
(download)
Tue Nov 6 20:57:58 2007 UTC (16 years, 10 months ago) by niro
File size: 580 byte(s)
Tue Nov 6 20:57:58 2007 UTC (16 years, 10 months ago) by niro
File size: 580 byte(s)
-patches for 2.5.7.1-r2
1 | --- d4x-2.5.7.1.vanilla/main/socket.cc 2006-05-13 22:24:42.000000000 +0530 |
2 | +++ d4x-2.5.7.1/main/socket.cc 2006-05-13 22:26:54.000000000 +0530 |
3 | @@ -164,11 +164,11 @@ |
4 | if ((fd = socket(info.sin_family,SOCK_STREAM, 0)) < 0) |
5 | return(SOCKET_CANT_ALLOCATE); |
6 | int a=1; |
7 | - setsockopt(fd,SOL_SOCKET,SO_KEEPALIVE,(char *)&a,sizeof(a)); |
8 | + |
9 | setsockopt(fd,SOL_SOCKET,SO_KEEPALIVE,(char *)&a,sizeof(a)); |
10 | |
11 | size_t sl=2000; //set receive buffer to default+30% MTU size |
12 | - setsockopt(fd,SOL_SOCKET,SO_RCVBUF,(char *)&sl,sizeof(sl)); |
13 | + |
14 | |
15 | if (!connect_impl()) |
16 | return(SOCKET_CANT_CONNECT); |