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:[email protected]] Sent: Thursday, April 02, 2009 8:23 AM To: Chas. Owens Cc: [email protected] 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 > From: "Chas. Owens" <[email protected]> > Date: Thu, April 02, 2009 5:19 am > To: Jeff Pang <[email protected]> > Cc: [email protected] > > > On Thu, Apr 2, 2009 at 08:11, Jeff Pang <[email protected]> wrote: > > 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: [email protected] For additional commands, e-mail: [email protected] http://learn.perl.org/ -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] http://learn.perl.org/
