You are viewing a plain text version of this content. The canonical link for it is here.
Posted to test-cvs@httpd.apache.org by wr...@apache.org on 2003/11/21 22:06:35 UTC

cvs commit: httpd-test/flood flood_net.c flood_test.c

wrowe       2003/11/21 13:06:35

  Modified:    flood    flood_net.c flood_test.c
  Log:
    APR 1.0 drops the 'option' APR_SO_TIMEOUT, but apr_socket_timeout_set
    has been around for quite a while in APR 0.9.
  
  Obtained from:  test-dev@httpd
  Submitted by:	Jennifer Wong <jwong covalent.net>
  
  Revision  Changes    Path
  1.14      +1 -1      httpd-test/flood/flood_net.c
  
  Index: flood_net.c
  ===================================================================
  RCS file: /home/cvs/httpd-test/flood/flood_net.c,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- flood_net.c	9 Sep 2003 09:49:50 -0000	1.13
  +++ flood_net.c	21 Nov 2003 21:06:35 -0000	1.14
  @@ -115,7 +115,7 @@
           }
       }
   
  -    apr_socket_opt_set(fs->socket, APR_SO_TIMEOUT, LOCAL_SOCKET_TIMEOUT);
  +    apr_socket_timeout_set(fs->socket, LOCAL_SOCKET_TIMEOUT);
       fs->read_pollset.desc_type = APR_POLL_SOCKET;
       fs->read_pollset.desc.s = fs->socket;
       fs->read_pollset.reqevents = APR_POLLIN;
  
  
  
  1.6       +1 -1      httpd-test/flood/flood_test.c
  
  Index: flood_test.c
  ===================================================================
  RCS file: /home/cvs/httpd-test/flood/flood_test.c,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- flood_test.c	3 Feb 2003 17:10:56 -0000	1.5
  +++ flood_test.c	21 Nov 2003 21:06:35 -0000	1.6
  @@ -153,7 +153,7 @@
           }
       }
   
  -    apr_setsocketopt(socket, APR_SO_TIMEOUT, LOCAL_SOCKET_TIMEOUT);
  +    apr_socket_timeout_set(socket, LOCAL_SOCKET_TIMEOUT);
   
       return socket;
   }