IO::Socket default timeout

What is the default timeout for an IO::Socket?

I've tried printing out $socket->timeout(); to check, but unless I
explicitly specify a timeout in the Socket constructor,
$socket->timeout() doesn't return anything. There's nothing in the
perldoc about the default timeout.

Thanks,
-Andrew
acotto [ Mo, 25 September 2006 20:35 ] [ ID #1478221 ]

Re: IO::Socket default timeout

acotto [at] gmail.com wrote:
> What is the default timeout for an IO::Socket?
>
> I've tried printing out $socket->timeout(); to check, but unless I
> explicitly specify a timeout in the Socket constructor,
> $socket->timeout() doesn't return anything. There's nothing in the
> perldoc about the default timeout.

That's because there's no default timeout.

The IO::Socket timeout us the time after which IO::Socket gives up
waiting for the OS's socket library to complete an operation.

By default IO::Socket never gives up waiting for the OS's socket
library to complete an operation. Eventually, however, the underlying
OS will give up. After how long, and how this is configured is, AFAIK,
an OS issue.
nobull67 [ Fr, 29 September 2006 19:08 ] [ ID #1483790 ]
Perl » comp.lang.perl.modules » IO::Socket default timeout

Vorheriges Thema: Problem printing a file uing Win32::Printer
Nächstes Thema: mysql data with HTML::BarGraph