httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dr...@apache.org
Subject cvs commit: httpd-2.0/server/mpm/beos beos.c
Date Fri, 12 Jul 2002 12:27:19 GMT
dreid       2002/07/12 05:27:19

  Modified:    server/mpm/beos beos.c
  Log:
  Adjust the sizes of the pollsets we create/use so that we work again.
  
  With the poll change we seem to have improved performance. :)
  
  Revision  Changes    Path
  1.99      +3 -3      httpd-2.0/server/mpm/beos/beos.c
  
  Index: beos.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/server/mpm/beos/beos.c,v
  retrieving revision 1.98
  retrieving revision 1.99
  diff -u -r1.98 -r1.99
  --- beos.c	11 Jul 2002 05:42:19 -0000	1.98
  +++ beos.c	12 Jul 2002 12:27:19 -0000	1.99
  @@ -397,10 +397,10 @@
       (void) ap_update_child_status_from_indexes(0, child_slot, SERVER_STARTING,
                                                  (request_rec*)NULL);
                                     
  -    apr_poll_setup(&pollset, num_listening_sockets, tpool);
  +    apr_poll_setup(&pollset, num_listening_sockets + 1, tpool);
       for(n=0 ; n <= num_listening_sockets ; n++)
           apr_poll_socket_add(pollset, listening_sockets[n], APR_POLLIN);
  -
  +	
       bucket_alloc = apr_bucket_alloc_create(tpool);
   
       while (1) {
  @@ -422,7 +422,7 @@
               apr_int16_t event;
               apr_status_t ret;
   
  -            ret = apr_poll(pollset, num_listening_sockets, &srv, -1);
  +            ret = apr_poll(pollset, num_listening_sockets + 1, &srv, -1);
   
               if (ret != APR_SUCCESS) {
                   if (APR_STATUS_IS_EINTR(ret)) {
  
  
  

Mime
View raw message