Re: LWP - Catching connection timeout



On 9/25/07, Tom Phoenix <tom@xxxxxxxxxxxxxx> wrote:
On 9/25/07, yitzle <yitzle@xxxxxxxxxxxxxxxxxxxxx> wrote:

When a connection timeout occurs, "the library disconnects and creates
an internal timeout response" [1]. This then exits my script.
Is there a way to change what occurs on timeout?

This sounds like an advanced LWP issue. Have you tried asking on the
LWP mailing list?

Cheers!

--Tom Phoenix
Stonehenge Perl Training

I was not aware there was a LWP mailing list ;)
libwww@xxxxxxxx via http://www.linpro.no/lwp/

I found a similar question posed on perlmonks, to which Randal
Schwartz suggests using POE (which I never heard of...) and Wonko
suggests using %SIG, alarm() and eval's - all of which I am unfamiliar
with, but none of which looks too complicated.

I suppose I should first try Wonko's suggestion before mailing LWP.

Thanks for your time!
.



Relevant Pages

  • Re: How to transparently download multiple files?
    ... to Perl and/or to HTML to produce reasonable HTML. ... This is a result of the content type you are using in your script. ... even if a download print. ... Research and learn about the LWP module. ...
    (comp.lang.perl.misc)
  • Re: How to transparently download multiple files?
    ... This is a result of the content type you are using in your script. ... three separate files to a single browser instance, even if a download print. ... Research and learn about the LWP module. ...
    (comp.lang.perl.misc)
  • Re: LWP - Catching connection timeout
    ... an internal timeout response". ... This then exits my script. ... This sounds like an advanced LWP issue. ...
    (perl.beginners)
  • Re: monitoring changing web pages
    ... set the script on a scheduler. ... > LWP. ... have the script email the group of people. ... another pointless reason to use a module. ...
    (comp.lang.perl.misc)
  • Re: How to call another program
    ... > to run a script in a script, I saw no evidence what you posted ... You don't seem to have the remotest clue what kind of impression ... Not on the basis of your own evidence, ... plausible interpretation of what you want, is that the answer is LWP. ...
    (comp.lang.perl.misc)