I ran into the same sorts of limitations earlier this year while trying to write a simulation server for testing code at work. I ended up trying several things including arrays of select objects under 5.6 and pure blocking sockets in their own threads under 5.8. I tried it under both linux and Win2k with about the same results.

Anytime I got past the 64 limits I seem to run into another limit around 110-125 or so. I did not try a select object per thread under 5.8 and perhaps when there's time I will. However, I need to service about 1000 sockets simultaneously and just couldn't get it to work very well even at around 100, performance dropped off. Unfortunately I ended up doing it in java which is working pretty well. For everything else I do, Perl rocks!

Perhaps Perl 6.? will have a better setup for this issue.


In reply to Re: maximum number of open ports per process on win98 by noslenj123
in thread maximum number of open ports per process on win98 by pg

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.