[xdebug-dev] xdebug xdebug/xdebug_com.c Reetz)

From: Derick Rethans <derick[@]derickrethans.nl>
Date: Tue, 7 Sep 2004 16:27:44 +0200

Date: Tue Sep 7 16:27:44 CEST 2004
User: Derick Rethans
Directory: xdebug

Log Message:
- Added the setting of the TCP_NODELAY socket option. (Patch by Christof J.
  Reetz)

Modified files:
           xdebug/xdebug_com.c (version: 1.11)

[FILE: /xdebug/xdebug_com.c]

===================================================================
RCS file: cvstemp,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- xdebug/xdebug_com.c:1.10 Thu Sep 18 12:31:56 2003 GMT
+++ xdebug/xdebug_com.c Tue Sep 07 12:27:44 2004 GMT
@@ -34,6 +34,7 @@
 #else
 # include <sys/socket.h>
 # include <netinet/in.h>
+# include <netinet/tcp.h>
 # include <arpa/inet.h>
 # include <netdb.h>
 #endif
@@ -74,6 +75,7 @@
         struct sockaddr_in address;
         int err = -1;
         int sockfd;
+ long optval = 1;
 #if WIN32|WINNT
         WORD wVersionRequested;
         WSADATA wsaData;
@@ -115,6 +117,7 @@
                 SCLOSE(sockfd);
                 return -1;
         }
+ setsockopt(sockfd, IPPROTO_TCP, TCP_NODELAY, &optval, sizeof(optval));
         return sockfd;
 }
 
Received on Tue Sep 07 2004 - 16:27:55 BST

This archive was generated by hypermail 2.2.0 : Sun Jun 24 2018 - 04:00:02 BST