summaryrefslogtreecommitdiff
blob: 50bc4f1bc44318a5ed5cb2f29d45b0467c7492b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- d4x-2.5.7.1.vanilla/main/socket.cc	2006-05-13 22:24:42.000000000 +0530
+++ d4x-2.5.7.1/main/socket.cc	2006-05-13 22:26:54.000000000 +0530
@@ -164,11 +164,11 @@
 	if ((fd = socket(info.sin_family,SOCK_STREAM, 0)) < 0)
 		return(SOCKET_CANT_ALLOCATE);
 	int a=1;
-	setsockopt(fd,SOL_SOCKET,SO_KEEPALIVE,(char *)&a,sizeof(a));
+
 	setsockopt(fd,SOL_SOCKET,SO_KEEPALIVE,(char *)&a,sizeof(a));
 	
 	size_t sl=2000; //set receive buffer to default+30% MTU size
-	setsockopt(fd,SOL_SOCKET,SO_RCVBUF,(char *)&sl,sizeof(sl));
+
 
 	if (!connect_impl())
 		return(SOCKET_CANT_CONNECT);