You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by tr...@apache.org on 2001/03/14 04:36:59 UTC
cvs commit: apr/network_io/unix sockopt.c
trawick 01/03/13 19:36:59
Modified: network_io/unix sockopt.c
Log:
Fix a typo which made apr_setsockopt(APR_TCP_NOPUSH) fail (on Linux,
at least) if APR_TCP_NODELAY was enabled for the socket.
Revision Changes Path
1.43 +1 -1 apr/network_io/unix/sockopt.c
Index: sockopt.c
===================================================================
RCS file: /home/cvs/apr/network_io/unix/sockopt.c,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -r1.42 -r1.43
--- sockopt.c 2001/02/16 04:16:03 1.42
+++ sockopt.c 2001/03/14 03:36:59 1.43
@@ -249,7 +249,7 @@
/* If we want to set NOPUSH then if we have the TCP_NODELAY
* flag set we need to switch it off...
*/
- int tmpflag = 1;
+ int tmpflag = 0;
if (setsockopt(sock->socketdes, IPPROTO_TCP, TCP_NODELAY,
(void*)&tmpflag, sizeof(int)) == -1){
return errno;