I just started the testing and gnashing. The following is the test program.
use IO::Select; use IO::Socket; use strict; my $lsn = new IO::Socket::INET(Listen => 1, LocalPort => 8080); my $sel = new IO::Select( $lsn ); my $rc= $sel->select ($sel,undef,undef, 2.2); #my $s= IO::Select->new(); #my $rc= $s->select (undef,undef,undef, 2.2); print "\$rc=<$rc>\n"; print "\$! <$!>\n"; print "\$@ <$@>\n";
I have tried the above in different configurations of arguments to the ->select(...); and in no cases did the timeout fire. The program just blocked until it recieves a connection.

From another xterm I then did:

tuser> echo "x" |nc localhost 8080
which produced the following at the blocked test program:
$rc=<3>; $! <Illegal seek> $@ <> tuser>

This may be moot if IO::Select doesn't process the timeout. The code examples in perldoc all show a fully blocked architecture using the 'can-read' sort of function.

Puzzling...

It is always better to have seen your target for yourself, rather than depend upon someone else's description.


In reply to Re: Msg.pm extended with "workproc". IO::Select docs by Wiggins
in thread Msg.pm extended with "workproc". IO::Select docs by Wiggins

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.