httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@apache.org
Subject cvs commit: httpd-2.0/server config.c
Date Sun, 21 Jan 2001 05:21:34 GMT
rbb         01/01/20 21:21:34

  Modified:    server   config.c
  Log:
  Add a call to apr_hook_deregister_all() in the clear_module_list function.
  The basic problem was that when we load the modules, we call the
  register_hooks() function from the module, but then we clear the module
  list for all active modules, and add them back in one at a time.  When we
  add them back, we re-call the register_hooks() function, thus adding
  each function a second time.  This was causing apache.org to log every
  request twice in the access log.  By calling apr_hook_deregister_all()
  when we unload the module, the second call to register the hooks is the
  only call that matters.
  
  Revision  Changes    Path
  1.103     +2 -0      httpd-2.0/server/config.c
  
  Index: config.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/server/config.c,v
  retrieving revision 1.102
  retrieving revision 1.103
  diff -u -d -b -w -u -r1.102 -r1.103
  --- config.c	2001/01/20 21:42:20	1.102
  +++ config.c	2001/01/21 05:21:32	1.103
  @@ -591,6 +591,8 @@
   	m = next_m;
       }
   
  +    apr_hook_deregister_all();
  +
       /* This is required; so we add it always.  */
       ap_add_named_module("http_core.c", p);
   }
  
  
  

Mime
View raw message