title: Socket accept - "Too many open files"
body: <p>I am working on a school project where I had to write a multi-threaded server, and now I am comparing it to apache by running some tests against it. I am using autobench to help with that, but after I run a few tests, or if I give it too high of a rate (around 600+) to make the connections,  I get a "Too many open files" error. </p>
  
  <p>After I am done with dealing with request, I always do a <code>close()</code> on the socket. I have tried to use the <code>shutdown()</code> function as well, but nothing seems to help. Any way around this?</p>