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

Re: HTTP Request Hangs

by IlyaM (Parson)
on Mar 03, 2003 at 18:39 UTC ( #240116=note: print w/replies, xml ) Need Help??


in reply to HTTP Request Hangs

Try to enable debug logging in LWP to see what happens (see LWP::Debug). What version of Perl are you using? If you use 5.005 then it comes with IO::Socket module which has a bug in timeout handling (IIRC LWP uses this module). You should upgrade to fixed version in this case.

--
Ilya Martynov, ilya@iponweb.net
CTO IPonWEB (UK) Ltd
Quality Perl Programming and Unix Support UK managed @ offshore prices - http://www.iponweb.net
Personal website - http://martynov.org

Replies are listed 'Best First'.
Re: Re: HTTP Request Hangs
by Beau Landeaux (Novice) on Mar 04, 2003 at 14:27 UTC
    Running Perl 5.6.0 on Sun. I'll add the LWP::Debug and see what that shows. Any suggestions on how to wrap the request in code that will kill it if it does not complete in a given time (like kicking a job off in BG and killing it it it takes too long)? Thanks for the LWP::Debug tip.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://240116]
help
Chatterbox?
[Corion]: marto: Ouch, yeah...
[marto]: the boys uncle will take them for a couple of hours this afternoon :)
[marto]: only at work 3 days this week, then off to Copenhagen for a wedding
[marto]: back the following Monday, potentially gone 2-3 days the next week for work
[Corion]: Oh - "Cyber Monday" week is coming up... That's why weird stuff is already discounted now...
[Corion]: marto: Oh, cool, I hope you get to enjoy the trip and Copenhagen! I found it nice (but the mermaid is underwhelming)
[marto]: the kids and their mother are coming too, actually only 9 people at the wedding in total. Still, will be fun

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2017-11-19 11:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (280 votes). Check out past polls.

    Notices?