Re: How do you get libwww-perl.5.48 to timeout?
Kurt D. Starsinic (kstar@cpan.org)
Mon, 22 Jan 2001 23:01:07 -0500
On Mon, Jan 22, 2001 at 02:27:30PM -0800, C K wrote:
> I'm setting my user agent, for libwww-perl-5.48, to time out in 15
> secs. But, occassionally some sites are just causing my script to
> hang for like 12-20 minutes waiting for a response, example:
> http://storebuilder.infospace.com/infospacecom/shop/default.asp
>
> I'm trying to find out why.
>
> So, I tried using alarm() and $SIG{ALRM}. This helped a little by
> timing out according to what I first set alarm(10) to. But, it's
> still hangin on the link shown above.
>
> Has anybody encountered the timeout function for a user agent, not
> stopping after a certain period waiting for a response?
>
> Thanks in advance for your advice!
I've seen this. I think that it's occurring during the gethostbyname()
or connect() calls. It is a pain in the neck, and if you find a solution,
I'll be grateful.
Peace,
Kurt
| `People wish to be settled; only as far as they are unsettled |
| is there any hope for them.' -- Ralph Waldo Emerson |