Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Python (http://www.velocityreviews.com/forums/f43-python.html)
-   -   socket and threading ... bad file descriptor (http://www.velocityreviews.com/forums/t370601-socket-and-threading-bad-file-descriptor.html)

hg 09-14-2006 11:44 AM

socket and threading ... bad file descriptor
 
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

hg 09-14-2006 12:14 PM

Re: socket and threading ... bad file descriptor
 
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


All times are GMT. The time now is 10:54 PM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57