ValueError: filedescriptor out of range in select()

Richard Brodie R.Brodie at
Tue Mar 17 16:24:48 CET 2009

"Laszlo Nagy" <gandalf at> wrote in message 
news:mailman.2032.1237300298.11746.python-list at

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

If I understand correctly, you call shutdown() but not close() in
response to a remote disconnect. That is likely to leak handles.
Check with lsof (or one of the Sysinternals tools on Windows). 

More information about the Python-list mailing list