Re: socket and threading ... bad file descriptor

2006-09-14 Thread hg
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 ra

socket and threading ... bad file descriptor

2006-09-14 Thread hg
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