ValueError: filedescriptor out of range in select()

MRAB google at mrabarnett.plus.com
Tue Mar 17 17:20:20 CET 2009


Laszlo Nagy wrote:
> 
>>
>> 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):
> try:
> self.socket.shutdown(socket.SHUT_RDWR)
> except socket.error:
> pass
> StreamEndpoint.shutdown(self)
> 
> This method is called after the connection has been closed. Is is 
> possible that somehow the file handles are leaking?
> 
Here's an interesting post:

http://mail.python.org/pipermail/python-list/2005-April/317442.html



More information about the Python-list mailing list