Hrunting has asked for the wisdom of the Perl Monks concerning the following question:
I tried passing in an explicity Timeout of 0 and sure enough, things connected as expected. Apparently, this is related to IO::Socket::INET as I could reproduce the behavior there.
Did something change in this module. Apparently, if I have any Timeout value specified, the socket times out, but if I explicitly pass in a 0 value or don't pass in a Timeout value at all, things work as they should. Is Timeout a boolean (the IO::Socket::INET manpage just says 'Timeout value for various operations', which I assume would be seconds (as do almost every other module that I use).
For some more information, this a fresh build of perl 5.6.0 on a RedHat 7.0-based i586 Linux install (kernel 2.2.18). Compilation is done using gcc 2.96 20000731.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: IO::Socket::INET Timeout Issue
by Fastolfe (Vicar) on Feb 07, 2001 at 00:28 UTC | |
by Hrunting (Pilgrim) on Feb 07, 2001 at 00:49 UTC | |
by Fastolfe (Vicar) on Feb 07, 2001 at 02:54 UTC | |
by Hrunting (Pilgrim) on Feb 07, 2001 at 03:40 UTC |