Re: mod_perl server doesn't reply

[prev] [thread] [next] [Date index for 2005/03/18]

From: Stas Bekman
Subject: Re: mod_perl server doesn't reply
Date: 16:15 on 18 Mar 2005
Anders Nielsen wrote:
> On Wed, 2005-03-16 at 21:11 -0500, Stas Bekman wrote:
> 
>>Please see:
>>21.7. Hanging Processes: Detection and Diagnostics
>>http://modperlbook.org/html/ch21_07.html
>>
> 
> 
> Thank you for the reply.
> 
> The problem I described happened again and I was able to get some more
> information.
> 
> The server isn't actually hanging. I put a print STDERR statement in the
> end of the script and it shows up in the error log. The problems is that
> the client doesn't get the response from the server for some reason.
> 
> Our scripst usually ends with a print statement that sends the output to
> STDOUT. When I removed this statement the clients got a (empty) reply.
> Before they where getting no reply at all.
> 
> For debugging purposes I created a script with one parameter called $x.
> The script prints the character 'a' as many times as a parameter says
> (print 'a' x $x). 
> 
> I found out that on small values for $x the script worked while the
> client got no reply for big values. I found the limit (15.982.236) where
> the script worked but if I added 1 the client wouldn't get the reply.
> This limit seemed to change after a while however.
> 
> I hope you or somebody else has some idea of what is wrong. Or at least
> can give me something to look for next time the problem occur.

Anders, do you by chance use a proxy that may have eaten the response?

What do you see in logs/access_log, it tells how many bytes were sent to 
the client.

What happens if you replace print($x) with Apache->request->print($x)



        -- 
        __________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@xxxxxx.xxx http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

(message missing)

mod_perl server doesn't reply
Anders Nielsen 09:47 on 16 Mar 2005

Re: mod_perl server doesn't reply
Anders Nielsen 12:00 on 16 Mar 2005

Re: mod_perl server doesn't reply
Stas Bekman 02:11 on 17 Mar 2005

Re: mod_perl server doesn't reply
Anders Nielsen 14:57 on 18 Mar 2005

Re: mod_perl server doesn't reply
Stas Bekman 16:15 on 18 Mar 2005

Re: mod_perl server doesn't reply
Anders Nielsen 22:25 on 18 Mar 2005

Re: mod_perl server doesn't reply
Stas Bekman 22:37 on 18 Mar 2005

Re: mod_perl server doesn't reply
Anders Nielsen 14:10 on 20 Mar 2005

Re: mod_perl server doesn't reply
Stas Bekman 21:51 on 21 Mar 2005

Re: mod_perl server doesn't reply
Anders Nielsen 15:53 on 23 Mar 2005

Generated at 15:10 on 27 Mar 2005 by mariachi v0.52