title: Creating many Sockets in ZMQ - too many files error
body: <p>I am trying to create sockets with <strong><code>inproc://</code></strong> transport class from the same context in C.</p>
  
  <p>I can create 2036 sockets, when I try to create more <code>zmq_socket()</code> returns <strong><code>NULL</code></strong> and the <code>zmq_errno</code> says 24 <code>'Too many open files'</code>.</p>
  
  <p>How can I create more than 2036 sockets? Especially as <code>inproc</code> forces me to use only one context.</p>
  
  <p>There are several things I don't understand:<br>
  - the sockets are eventually turned to <code>inproc</code>, why does it take up files?<br>
  - Increasing <strong><code>ZMQ_MAX_SOCKETS</code></strong> does not help, the system file limit appears to be the limiting factor<br>
  - I am unable to increase the file limit with <strong><code>ulimit</code></strong> on my Mac, no workaround helped.  </p>
  
  <p>// the code is actually in cython and can be found here:  </p>
  
  <p><a href="https://github.com/DavoudTaghawiNejad/ABsinthCE" rel="nofollow noreferrer">https://github.com/DavoudTaghawiNejad/ABsinthCE</a></p>