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:hostmas...@duxieweb.com] Sent: Thursday, April 02, 2009 8:23 AM To: Chas. Owens Cc: beginners@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 > From: "Chas. Owens" <chas.ow...@gmail.com> > Date: Thu, April 02, 2009 5:19 am > To: Jeff Pang <hostmas...@duxieweb.com> > Cc: beginners@perl.org > > > On Thu, Apr 2, 2009 at 08:11, Jeff Pang <hostmas...@duxieweb.com> 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: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/ -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/