title: Python asyncore: "filedescriptor out of range in select()"
body: <p>I have some python script with more than 3k outgoing socket connections, based on asyncore lib.
  I can't use select(..) due to connections limit (1024), but poll(..) not working properly too:</p>
  
  <pre><code>asyncore.loop(use_poll=True)
  </code></pre>
  
  <p>With this invocation my app ignores any socket events. Note that select() on less than 1024 sockets works fine.</p>
  
  <p>Where is my problem?</p>