socket and threading ... bad file descriptor

hg hg at nospam.com
Thu Sep 14 08:14:21 EDT 2006


hg wrote:
> Hi,
> 
> I have two classes, one listens and accepts connections, gets the
> socket, reads the first byte from the opened socket then launches a
> thread (threading) and gives it the socket identifier.
> 
> The first time the thread attempts to read from the given socket,
> socket.py raises a bad file descriptor in _dummy.
> 
> I tried using plain threads with the same problem.
> 
> Any clue ?
> 
> Thanks,
> 
> hg

Bug discovered, sorry



More information about the Python-list mailing list