Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

When I run my program, it uses quite a long time, I did not really count the exact time. I got:
ERROR:500 read timeout at program.pl line 76.
my code is:
my $res = $browser->post $url;
The respone part works fine! It is a huge database. What should I do for the timeout problem? Thanks in advance!

Replies are listed 'Best First'.
Re: timeout problem
by Abigail-II (Bishop) on Apr 22, 2003 at 00:28 UTC
    Well, the post you code is a syntax error. However, there's not enough information to answer your question. You see, ERROR:500 read timeout at program.pl is not a Perl error, it's an error thrown by some user code. Most likely, it's on line 76 of program.pl or in some module that gets called on line 76 of program.pl.

    Now, since most modules try to give useful error messages, I expect the module is doing some read operation that times out. But maybe the module gives that message if it doesn't have enough blue socks. Who knows? You don't tell us what the module is. Maybe the module has a way of setting timeouts; but maybe it doesn't. If it does, it's likely to be found in its manual page.

    Abigail

•Re: timeout problem
by merlyn (Sage) on Apr 22, 2003 at 02:44 UTC