On Thu, Dec 5, 2019 at 5:38 AM Mark Shannon <mark@hotpy.org> wrote:
From my limited googling, linux has a hard limit of about 600k file descriptors across all processes. So, 1M is well past any reasonable per-process limit. My impression is that the limits are lower on Windows, is that right?
Linux does limit the total number of file descriptors across all processes, but the limit is configurable at runtime. 600k is the default limit, but you can always make it larger (and people do). In my limited experimentation with Windows, it doesn't seem to impose any a priori limit on how many sockets you can have open. When I wrote a simple process that opens as many sockets as it can in a loop, I didn't get any error; eventually the machine just locked up. (I guess this is another example of why it can be better to have explicit limits!) -n -- Nathaniel J. Smith -- https://vorpus.org