httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bri...@apache.org
Subject cvs commit: httpd-2.0/server/mpm/worker worker.c
Date Fri, 14 Dec 2001 16:29:43 GMT
brianp      01/12/14 08:29:43

  Modified:    .        CHANGES
               server/mpm/worker worker.c
  Log:
  Use the new APR pool code to reduce pool-related lock
  contention in the worker MPM.
  Submitted by:	Sander Striker
  Reviewed by:	Brian Pane
  
  Revision  Changes    Path
  1.475     +3 -0      httpd-2.0/CHANGES
  
  Index: CHANGES
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/CHANGES,v
  retrieving revision 1.474
  retrieving revision 1.475
  diff -u -r1.474 -r1.475
  --- CHANGES	2001/12/12 23:56:46	1.474
  +++ CHANGES	2001/12/14 16:29:43	1.475
  @@ -1,5 +1,8 @@
   Changes with Apache 2.0.30-dev
   
  +  *) Use the new APR pool code to reduce pool-related lock
  +     contention in the worker MPM.  [Sander Striker]
  +
     *) The POD no longer assumes the child is listening on 127.0.0.1
        and now pulls the first hostname in the list of listeners to
        perform the dummy connect on. This fixes a bug when the user
  
  
  
  1.47      +2 -1      httpd-2.0/server/mpm/worker/worker.c
  
  Index: worker.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/server/mpm/worker/worker.c,v
  retrieving revision 1.46
  retrieving revision 1.47
  diff -u -r1.46 -r1.47
  --- worker.c	2001/12/14 06:10:38	1.46
  +++ worker.c	2001/12/14 16:29:43	1.47
  @@ -654,7 +654,8 @@
       got_fd:
           if (!workers_may_exit) {
               /* create a new transaction pool for each accepted socket */
  -            apr_pool_create(&ptrans, tpool);
  +            apr_pool_create_ex(&ptrans, tpool, NULL, APR_POOL_FNEW_ALLOCATOR);
  +            apr_pool_tag(ptrans, "transaction");
   
               rv = lr->accept_func(&csd, lr, ptrans);
   
  
  
  

Mime
View raw message