Skip to content
  1. Feb 06, 2007
    • Chris Darroch's avatar
      Introduce configuration groups to allow inheritance by virtual hosts of · bbe8f2dc
      Chris Darroch authored
      database configurations from the main server.  The post_config hook function
      determines the minimal set of distinct configurations necessary so that
      database connection pools are shared between virtual hosts whenever possible.
      
      The SQL statements which should be prepared for each database connection
      are now stored in a hash for each virtual host during the configuration
      phase, and these hashes are merged in the normal manner using
      apr_hash_overlay() with that of the main server.  This allows for statements
      to be de-registered by DBDPrepareSQL, if desired.  The post_config hook
      function then compares the statements registered for each virtual host
      when determining if a separate configuration group is required.  The
      changes in r424798, r432560, r432562, and r466641, which still have problems
      with configuration inheritance, are therefore no longer necessary.
      
      
      git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@503931 13f79535-47bb-0310-9956-ffa450edef68
      bbe8f2dc
  2. Feb 05, 2007
  3. Feb 04, 2007
    • Jeff Trawick's avatar
      Update the hash table of active script pids even on paths where a · 8f93fc78
      Jeff Trawick authored
      script process wasn't created (storing 0 for the pid in that case).
      Otherwise, the remembered pid is that of the last successful script
      execution for this hash key.
      
      Prior to this patch, the wrong process could be terminated in
      rare circumstances:
      
      - A CGI process with pid 10101 is forked for connection 99.
      
      - After the CGI exits and some time elapses, some other process gets 
        pid 10101. (Connection 99 hasn't handled another CGI request yet.)
      
      - The next time connection 99 has a CGI process, the fork()
        or other early setup fails, so no CGI process is created.
      
      - The remembered pid for connection 99 is still 10101.  It
        gets terminated (subject to permissions).
      
      
      git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@503340 13f79535-47bb-0310-9956-ffa450edef68
      8f93fc78
  4. Feb 02, 2007
  5. Feb 01, 2007
  6. Jan 31, 2007
  7. Jan 30, 2007
  8. Jan 29, 2007
  9. Jan 28, 2007
  10. Jan 24, 2007
  11. Jan 22, 2007
  12. Jan 16, 2007
    • Chris Darroch's avatar
      We now create memory sub-pools for each DB connection and close DB · 581ee2b7
      Chris Darroch authored
      connections in a pool cleanup function.  This simplifies the ap_dbd_acquire()
      and ap_dbd_cacquire() functions, and also stops us from leaking ap_dbd_t
      structures when using reslists.
      
      We ensure that prepared statements are destroyed before their DB connection
      is closed, in case any drivers would have problems cleaning up prepared
      statements after the DB connection is closed.
      
      The combination of reslists and memory pool cleanup functions was causing
      segfaults when child processes exited, as reported in PR 39985.  To prevent
      this, we register dbd_destroy() as a cleanup that will execute prior to
      the internal cleanup function registered by apr_reslist_create().  When the
      reslist's memory pool is destroyed, dbd_destroy() informs dbd_destruct() not
      to do anything when subsequently called by the reslist's internal cleanup
      function.
      
      We avoid the use of s->process->pool (the global pool) since it isn't
      destroyed by exiting child processes in most multi-process MPMs.
      
      
      git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@496831 13f79535-47bb-0310-9956-ffa450edef68
      581ee2b7
  13. Jan 13, 2007
  14. Jan 12, 2007
  15. Jan 11, 2007
  16. Jan 10, 2007
  17. Jan 09, 2007
  18. Jan 06, 2007
  19. Jan 04, 2007
  20. Jan 03, 2007
    • William A. Rowe Jr's avatar
      · 9b96114b
      William A. Rowe Jr authored
        Correctly evaluate the HTTPS condition string.
      
      PR: 40573
      Submitted by: Matt Eaton <asf divinehawk.com>
      
      git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@492341 13f79535-47bb-0310-9956-ffa450edef68
      9b96114b
    • William A. Rowe Jr's avatar
      · 9bf06958
      William A. Rowe Jr authored
        Where any response is sent, return OK from the handler.  Where there
        is no response (but a status code) return the code.  This patch adds
        a great number of debugging emits for failed ap_pass_brigade calls,
        to help diagnose failure cases, and disambiguates OK from APR_SUCCESS. 
      
      PR: 40470
      Submitted by: wrowe, Matt Eaton <asf divinehawk.com>
      
      
      git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@492333 13f79535-47bb-0310-9956-ffa450edef68
      9bf06958
  21. Jan 02, 2007
  22. Dec 31, 2006
  23. Dec 30, 2006
  24. Dec 29, 2006
  25. Dec 25, 2006