filedescriptor out of range in select()

Paolo Invernizzi paoloinvernizzi at
Fri Jun 27 14:26:33 CEST 2003

Fredrik Lundh wrote:

> but I'm pretty sure asyncore supports the "poll" interface.  try changing
> the asyncore.loop call in to:
>     asyncore.loop(map=context._map, use_poll=1)
> and see what happens.

Here we are again....
Too many open files... with poll too...


SpamBayes POP3 Proxy Beta1, version 0.1 (May 2003),
using SpamBayes POP3 Proxy Web Interface Alpha2, version 0.02
and engine SpamBayes Beta1, version 0.1 (May 2003).

Loading database... Done.
SMTP Listener on port 2525 is proxying
Listener on port 8110 is proxying
User interface url is http://localhost:8880/
error: uncaptured python exception, closing channel 
<__main__.BayesProxyListener listening :8110 at 0x83c9f6c> 
(socket.error:(24, 'Too many open files') 
error: uncaptured python exception, closing channel <__main__.BayesProxy 
connected at 0x84d8aac> 
(exceptions.AttributeError:'_socket.socket' object has no attribute 
'isClosed' [/usr/local/lib/python2.2/|poll3|184] 
Traceback (most recent call last):
   File "/usr/local/bin/", line 731, in ?
   File "/usr/local/bin/", line 725, in run
     main(state.servers, state.proxyPorts, state.uiPort, state.launchUI)
   File "/usr/local/bin/", line 664, in main
   File "/usr/local/lib/python2.2/site-packages/spambayes/", 
line 528, in run
   File "/usr/local/lib/python2.2/", line 206, in loop
     poll_fun (timeout, map)
   File "/usr/local/lib/python2.2/", line 190, in poll3
   File "/usr/local/lib/python2.2/site-packages/spambayes/", 
line 205, in handle_error
   File "/usr/local/lib/python2.2/", line 427, in handle_error
   File "/usr/local/bin/", line 368, in close
     if not self.isClosed:
   File "/usr/local/lib/python2.2/", line 372, in __getattr__
     return getattr (self.socket, attr)
AttributeError: '_socket.socket' object has no attribute 'isClosed'

More information about the Python-list mailing list