Scott Tomilson wrote:
Hi all,
Apologies if this isn't the right forum, but I am not sure where to turn
to...
I have mod_perl 2.0.4 installed with ActivePerl 5.10.0 under Apache 2.2.9
running on Windows 2003 Server SP1.
Well, that sounds like you are in the right forum anyway..
I have a very simple PerlResponseHandler
and that even more.. Welcome !
hooked in via httpd.conf for a
specific Location. My custom PerlResponseHandler simply prints back "Hello
World" on the HTTP Response. E.g. (simplified obviously):
sub handler {
my $r = shift;
my $s = $r->server;
are you using that $s later ? seems useless otherwise
print "Hello World";
my $count = $r->print "Hello World"; # ?
I'm not sure it makes that much difference, but it would seem more
consistent to use in this environment.
http://perl.apache.org/docs/2.0/api/Apache2/RequestIO.html#C_print_
return Apache2::Const::OK;
}
1;
The PerlResponseHandler works fine for most requests, however if I blast a
whole bunch of HTTP requests on multiple threads, etc to Apache, the Web
server stops handling responses. Connections eventually time out with no
response. Apache error.log shows the following:
Free to wrong pool da2750 not 184a6a8.
Which leads me to believe there is something funny going on with multiple
threads, etc.
It definitely sounds that way, but that's way out of my league.
(Might that extra $r->server have something to do with it ?)
Perrin, Fred, Torsten ? help !