filedescriptor out of range in select()

Paolo Invernizzi paoloinvernizzi at dmsware.com
Mon Jun 30 09:29:51 EDT 2003


Paolo Invernizzi wrote:

> Steve Holden wrote:
> 
>> I suspect that the "too many open files" is simply a symptom of a deeper
>> problem, in that your sockets aren't being correctly closed due to a
>> programming error. The asyncore framework will happily continue to run 
>> even
>> if errors occur in the event-handling routines, cneatly demonstrating the
>> dangers of an unlimited "try:/except:".
>>
>> There's a clear implication here that a BayesProxy instance isn't running
>> its __init__() method, because if it *were* running it the isClosed
>> attribute would be defined.
> 
> 
> I'll check this today...
> 

I've added a simple print at the end of the __init__ method...
The __init__ is called when fetchmail query the pop3proxy...

;-(

---
Paolo

Loading database... Done.
SMTP Listener on port 2525 is proxying 127.0.0.1:25
Listener on port 8110 is proxying kpnqwest.it:110
User interface url is http://localhost:8880/
BayesProxy::__init__(<socket object, fd=10, family=2, type=1, 
protocol=0>,<socket object, fd=10, family=2, type=1, 
protocol=0>,kpnqwest.it,110)
BayesProxy::__init__(<socket object, fd=10, family=2, type=1, 
protocol=0>,<socket object, fd=10, family=2, type=1, 
protocol=0>,kpnqwest.it,110)
BayesProxy::__init__(<socket object, fd=10, family=2, type=1, 
protocol=0>,<socket object, fd=10, family=2, type=1, 
protocol=0>,kpnqwest.it,110)
BayesProxy::__init__(<socket object, fd=10, family=2, type=1, 
protocol=0>,<socket object, fd=10, family=2, type=1, 
protocol=0>,kpnqwest.it,110)
BayesProxy::__init__(<socket object, fd=11, family=2, type=1, 
protocol=0>,<socket object, fd=11, family=2, type=1, 
protocol=0>,kpnqwest.it,110)
BayesProxy::__init__(<socket object, fd=10, family=2, type=1, 
protocol=0>,<socket object, fd=10, family=2, type=1, 
protocol=0>,kpnqwest.it,110)
BayesProxy::__init__(<socket object, fd=21, family=2, type=1, 
protocol=0>,<socket object, fd=21, family=2, type=1, 
protocol=0>,kpnqwest.it,110)
BayesProxy::__init__(<socket object, fd=10, family=2, type=1, 
protocol=0>,<socket object, fd=10, family=2, type=1, 
protocol=0>,kpnqwest.it,110)
BayesProxy::__init__(<socket object, fd=10, family=2, type=1, 
protocol=0>,<socket object, fd=10, family=2, type=1, 
protocol=0>,kpnqwest.it,110)
BayesProxy::__init__(<socket object, fd=11, family=2, type=1, 
protocol=0>,<socket object, fd=11, family=2, type=1, 
protocol=0>,kpnqwest.it,110)
BayesProxy::__init__(<socket object, fd=10, family=2, type=1, 
protocol=0>,<socket object, fd=10, family=2, type=1, 
protocol=0>,kpnqwest.it,110)
BayesProxy::__init__(<socket object, fd=31, family=2, type=1, 
protocol=0>,<socket object, fd=31, family=2, type=1, 
protocol=0>,kpnqwest.it,110)
BayesProxy::__init__(<socket object, fd=10, family=2, type=1, 
protocol=0>,<socket object, fd=10, family=2, type=1, 
protocol=0>,kpnqwest.it,110)
BayesProxy::__init__(<socket object, fd=31, family=2, type=1, 
protocol=0>,<socket object, fd=31, family=2, type=1, 
protocol=0>,kpnqwest.it,110)
BayesProxy::__init__(<socket object, fd=10, family=2, type=1, 
protocol=0>,<socket object, fd=10, family=2, type=1, 
protocol=0>,kpnqwest.it,110)







More information about the Python-list mailing list