apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject cvs commit: apr/network_io/unix sockopt.c
Date Wed, 14 Mar 2001 03:36:59 GMT
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;
  
  
  

Mime
View raw message