Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: request timing out on Perl Web

by jpcardoso (Initiate)
on May 30, 2014 at 16:07 UTC ( [id://1088024]=note: print w/replies, xml ) Need Help??


in reply to Re: request timing out on Perl Web
in thread request timing out on Perl Web

Hi Ed,

The error message in the webserver log is "Timeout waiting for output from CGI script".

You opened my mind and I set the TimeOut value to 360 in the apache configuration, I was missing that. :)

It seems to be working fine now, thank you very much for the quick help!

Replies are listed 'Best First'.
Re^3: request timing out on Perl Web
by flexvault (Monsignor) on May 30, 2014 at 17:46 UTC

    jpcardoso,

    I'm glad I could help you, but I also have to agree with the other monks about waiting 5 minutes for a response. That's a really long time on the web today. Most users expect responses in seconds, not minutes. Doing this lookup with 'ajax' would be nice, but it would also be a lot of work.

    Maybe, let us help you with the real problem -- having to 'grep' on a 'bz2' file. Perl is very good at reading a file and searching ( 'index' ). Several generic fixes come to mind, but some more information about the data(bz2 file) would help us give you some better options.

    But just in case you can't get around the 'grep', you could schedule it and immediately return a HTML page informing the user that it will take 'x' minutes to get a response and to check back in a few minutes. Provide a link to check on the status. Once the response is available, return the current page that you are returning now.

    You may also want to look at the problem of denial of service (DOS) with longer time-outs. The apache web site describes this in detail. Better to plan now, than get the web site finished and then have a DOS attack.

    Best of Luck...Ed

    "Well done is better than well said." - Benjamin Franklin

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1088024]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (6)
As of 2024-04-20 00:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found