XP is just a number | |
PerlMonks |
Re: unknown socket problemby agoth (Chaplain) |
on Jan 18, 2002 at 14:54 UTC ( [id://139793]=note: print w/replies, xml ) | Need Help?? |
I believe I read somewhere that the timeout in the IO::Socket::INET or whatever doesn't apply to the connection, although I could be mixing my dim perldoc memories. UPDATE: I'm right-ish see bottom of post So, I have cobbled something out of LWP::ParallelUserAgent, where in the depths of the code, he uses a construct (shown below), there is an equivalent can_read (perldoc IO::Select) method, and these actually give working timeouts if the server / network is AWOL on my system at least
UPDATE : knew I'd read it somewhere Found it: pp 114 Chapter 5 IO::Socket API, Lincoln Stein book $val->timeout($timeout);
In Section
Seekers of Perl Wisdom
|
|