socket and threading ... bad file descriptor

H

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 in _dummy.

I tried using plain threads with the same problem.

Any clue ?

Thanks,

hg
 
H

hg

hg said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,045
Latest member
DRCM

Latest Threads

Top