Where is the right place to setup a connection pool?

2007-10-31 Thread John Zhang
I am writing a module talking to a remote server that handles the real work. I need to build/keep a pool of connections for reuse almong the different Apache worker threads. Should I build that in the ap_hook_post_config or ap_hook_child_init function? When apache creates multiple processes,

Re: Where is the right place to setup a connection pool?

2007-10-31 Thread Nick Kew
On Wed, 31 Oct 2007 13:41:59 -0700 (PDT) John Zhang [EMAIL PROTECTED] wrote: Thanks in advance for any help. Use an apr_reslist to manage the pool. See mod_dbd for an example. -- Nick Kew Application Development with Apache - the Apache Modules Book http://www.apachetutor.org/

Re: Where is the right place to setup a connection pool?

2007-10-31 Thread Nick Kew
On Wed, 31 Oct 2007 13:41:59 -0700 (PDT) John Zhang [EMAIL PROTECTED] wrote: I am writing a module talking to a remote server that handles the real work. I need to build/keep a pool of connections for reuse almong the different Apache worker threads. Further to my previous reply ... What

Re: Proposal: Increase request in worker_score

2007-10-31 Thread Jim Jagielski
For those interested, check out http://svn.apache.org/viewvc?rev=590641view=rev pasts tests and works as expected, at least in my limited testing :) Again, the main focus in this was to resolve the issue in a 2.2-friendly way. So I'd like to get additional feedback with that in mind before

Re: Proposal: Increase request in worker_score

2007-10-31 Thread Jim Jagielski
On Oct 31, 2007, at 10:42 AM, Niklas Edmundsson wrote: On Wed, 31 Oct 2007, Jim Jagielski wrote: For those interested, check out http://svn.apache.org/viewvc?rev=590641view=rev pasts tests and works as expected, at least in my limited testing :) Again, the main focus in this was to

Re: Proposal: Increase request in worker_score

2007-10-31 Thread Niklas Edmundsson
On Wed, 31 Oct 2007, Jim Jagielski wrote: For those interested, check out http://svn.apache.org/viewvc?rev=590641view=rev pasts tests and works as expected, at least in my limited testing :) Again, the main focus in this was to resolve the issue in a 2.2-friendly way. So I'd like to get

mod_proxy_ajp sockets in CLOSE_WAIT state

2007-10-31 Thread jean-frederic clere
Hi, After running a load test (using ab) against Apache httpd + Tomcat I have noted several sockets are left in CLOSE_WAIT state when using MPM worker. Once the worker is marked IN_ERROR the sockets belonging to the pool will not be closed. I have tried something like the worker.maintain of

Addition for config.layout for default Solaris 10

2007-10-31 Thread Grant M.
# Solaris 10 Layout Layout Sol10 prefix:/usr/apache2 exec_prefix: ${prefix} bindir:${exec_prefix}/bin sbindir: ${exec_prefix}/bin includedir:${exec_prefix}/include libdir:${exec_prefix}/lib libexecdir:${exec_prefix}/libexec

prefork: hung processes on graceful reload

2007-10-31 Thread Stefan Fritsch
On Monday 08 October 2007, Jim Jagielski wrote: On Oct 5, 2007, at 2:07 PM, Stefan Fritsch wrote: Maybe someone could also look at http://issues.apache.org/bugzilla/show_bug.cgi?id=42829 A quick review seems to indicate that the suggested patch could result in a worker accepting a

Re: Addition for config.layout for default Solaris 10

2007-10-31 Thread Grant M.
Grant M. wrote: # Solaris 10 Layout Sorry, this is actually correct (error was wrong). # Solaris 10 Layout Layout Sol10 prefix:/usr/apache2 exec_prefix: ${prefix} bindir:${exec_prefix}/bin sbindir: ${exec_prefix}/bin includedir:

[STATUS] (httpd-2.0) Wed Oct 31 23:47:14 2007

2007-10-31 Thread Rodent of Unusual Size
APACHE 2.0 STATUS: -*-text-*- Last modified at [$Date: 2007-10-10 14:13:31 -0400 (Wed, 10 Oct 2007) $] The current version of this file can be found at: * http://svn.apache.org/repos/asf/httpd/httpd/branches/2.0.x/STATUS Documentation status is

[STATUS] (httpd-2.2) Wed Oct 31 23:48:59 2007

2007-10-31 Thread Rodent of Unusual Size
APACHE 2.2 STATUS: -*-text-*- Last modified at [$Date: 2007-10-31 19:06:46 -0500 (Wed, 31 Oct 2007) $] The current version of this file can be found at: * http://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x/STATUS Documentation status is

[STATUS] (httpd-trunk) Wed Oct 31 23:49:43 2007

2007-10-31 Thread Rodent of Unusual Size
APACHE 2.3 STATUS: -*-text-*- Last modified at [$Date: 2006-08-22 16:41:03 -0400 (Tue, 22 Aug 2006) $] The current version of this file can be found at: * http://svn.apache.org/repos/asf/httpd/httpd/trunk/STATUS Documentation status is maintained

Re: Proxying subrequests

2007-10-31 Thread Ian Holsman
Nick Kew wrote: Our subrequest API currently handles only local subrequests, so for example mod_include doesn't support !--#include virtual=http://example.com/example.txt--. I've worked around this in the past with some ugly hacks. Looking at the code, it's actually very simple to build in