title: socket.accept error 24: To many open files
body: <p>I have a problem with open files under my Ubuntu 9.10 when running server in Python2.6
  And main problem is that, that i don't know why it so.. </p>
  
  <p>I have set </p>
  
  <p>ulimit -n = 999999</p>
  
  <p>net.core.somaxconn = 999999</p>
  
  <p>fs.file-max = 999999</p>
  
  <p>and lsof gives me about 12000 open files when server is running.</p>
  
  <p>And also i'm using epoll.</p>
  
  <p>But after some time it's start giving exeption:</p>
  
  <p>File "/usr/lib/python2.6/socket.py", line 195, in accept
  error: [Errno 24] Too many open files</p>
  
  <p>And i don't know how it can reach file limit when it isn't reached.</p>
  
  <p>Thanks for help)</p>