ValueError: filedescriptor out of range in select()

Laszlo Nagy gandalf at
Tue Mar 17 15:31:33 CET 2009

> Hi Laszlo,
> Just a hunch -- are you leaking file handles and eventually running out?
These file handles are for TCP sockets. They are accept()-ed, used and 
then thrown out. I guess after the connection was closed, the file 
handle is destroyed automatically. BTW here is the shutdown() method for 
socket based endpoints:

def shutdown(self):
except socket.error:

This method is called after the connection has been closed. Is is 
possible that somehow the file handles are leaking?


More information about the Python-list mailing list