Just a guess, but it may return after the socket driver times out. That
would be right after the DNS lookup fails, or after the connection is
refused by the host, or about 3 1/2 minutes when the driver stops trying
to open a non-responding port. That may still absurdly long in this day
and age, but those specs were written in a different age.
Bob McConnell
-----Original Message-----
From: Jeff Pang [mailto:***@duxieweb.com]
Sent: Thursday, April 02, 2009 8:23 AM
To: Chas. Owens
Cc: ***@perl.org
Subject: RE: default timeout for IO::Socket::INET
oh will be trying to connect to the remote host forever until it gets
successed?
that sounds not reasonable.thanks.
-------- Original Message --------
Subject: Re: default timeout for IO::Socket::INET
Date: Thu, April 02, 2009 5:19 am
I checked perldoc documents but didn't find a default timeout value for
IO::Socket::INET object.
Who knows that? thanks.
snip
Based on my reading of the code it looks like it doesn't timeout by default.
--
Chas. Owens
wonkden.net
The most important skill a programmer can have is the ability to read.
--
To unsubscribe, e-mail: beginners-***@perl.org
For additional commands, e-mail: beginners-***@perl.org
http://learn.perl.org/