in reply to Re: Re (tilly) 3: Forking Issue
in thread Forking Issue

IO::Socket has a timeout attribute that you can get/set. Does that work on Win32?

Replies are listed 'Best First'.
IO::Socket timeout method on Win32
by OeufMayo (Curate) on Mar 18, 2001 at 19:57 UTC

    Apparently, the timeout method exists in Win32. It is set to undef by default. Here's the sample code I used:

    my $sock = new IO::Socket; print $sock->timeout() || "undef"; # prints "undef" $sock->timeout(10); print $sock->timeout() || "undef"; # prints "10"

    Tested on Activestate 5.6.0 multi-threaded

    <kbd>--
    my $OeufMayo = new PerlMonger::Paris({http => 'paris.mongueurs.net'});</kbd>
      Exists is not the same as working. I phrased my original statement as a question because while I knew the method would be there, I didn't know if it would work.

      Check out Re (tilly) 1: Timeout problem using IO::Socket for more on this.

Re: Re (tilly) 5: Forking Issue
by Anonymous Monk on Mar 18, 2001 at 19:28 UTC
    Nope. :-(