httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dr...@locus.apache.org
Subject cvs commit: apache-2.0/src/lib/apr/network_io/unix sockopt.c
Date Fri, 12 May 2000 10:38:34 GMT
dreid       00/05/12 03:38:34

  Modified:    src/lib/apr/network_io/unix sockopt.c
  Log:
  The latest BeOS version uses the unix network code, so make the changes to
  allow it to work.
  
  Revision  Changes    Path
  1.24      +6 -0      apache-2.0/src/lib/apr/network_io/unix/sockopt.c
  
  Index: sockopt.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/lib/apr/network_io/unix/sockopt.c,v
  retrieving revision 1.23
  retrieving revision 1.24
  diff -u -r1.23 -r1.24
  --- sockopt.c	2000/04/14 15:58:40	1.23
  +++ sockopt.c	2000/05/12 10:38:34	1.24
  @@ -128,6 +128,7 @@
           }
       }
       if (opt & APR_SO_NONBLOCK) {
  +#ifndef BEOS
           if (on) {
               if ((stat = soblock(sock->socketdes)) != APR_SUCCESS) 
                   return stat;
  @@ -136,6 +137,11 @@
               if ((stat = sononblock(sock->socketdes)) != APR_SUCCESS)
                   return stat;
           }
  +#else
  +        stat = setsockopt(sock->socketdes, IPPROTO_TCP, TCP_NODELAY, &on, sizeof(int));
  +        if (stat != 0)
  +            return stat;
  +#endif
       }
       if (opt & APR_SO_LINGER) {
           li.l_onoff = on;
  
  
  

Mime
View raw message