perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew O'Brien" <andr...@oriel.com.au>
Subject RE: 30 second timeout
Date Mon, 26 Nov 2007 23:33:56 GMT

Hi Matthew,

> I've got an .epl script that is failing to run past 30 
> seconds.  Here's a very simple example:

[snip]

> When I hit that it times out at 30 seconds. I've tried with 
> the browser and wget (which has a 900 second default timeout 
> according to the man page).  I think this is happening 
> because Embperl doesn't send a response until after the full 
> output is completed, but it looks to be the server that's 
> enforcing the cutoff.  I'm running 2.2.0 under mod_perl 2.0.2 
> and httpd 2.2.4.
> 
> Is there some way to adjust the server timeout to exceed 30 
> seconds? Meanwhile, I'm trying to speed up the execution of 
> my script as a stop gap. :)

The timeout on the apache side is controlled by the "Timeout" variable
in your config file. Under debian at least this is set to 300 (5 min) by
default. Have a look at /etc/apache2 or wherever your apache config
files live and check the value.

If you're talking directly to the server (no proxies etc) then this
should be the culprit.

As an aside, how long are you expecting the page code to take?


In HTML::Embperl there was an optEarlyHttpHeader setting for
EMBPERL_OPTIONS. I can't see that available for Embperl and I'm not sure
its even possible with the structural changes made along the way. I'm
sure someone else with more experience in 2.2 can enlighten us though.

Cheers,

Andrew


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Mime
View raw message