Isn't the whole point of select() that it doesn't block? Let us know how it works out.
Not quite, select() does block until one of the following happens:
  1. One of the file descriptors is in a state where it will not block if use to read or write.
  2. Something exceptional happened to a file descriptor. (Like the other side of a network connection closed the connection.)
  3. A timeout expires. (Passed as an argument to the select() call.)
    Update: timeout can be zero which causes select to not block.
  4. A signal arrives. This lets the main loop of a process deal with events triggered by signals. (Usually the signal handler just sets a global flag and the main loop checks for the flag.)
Some details based on the man page for select(2) found on my Linux system today. Your system might vary.

In reply to Re^6: Using Net::Server::Multiplex and polling Spread by superfrink
in thread Using Net::Server::Multiplex and polling Spread by superfrink

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.