Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > socket and threading ... bad file descriptor

Reply
Thread Tools

socket and threading ... bad file descriptor

 
 
hg
Guest
Posts: n/a
 
      09-14-2006
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
 
Reply With Quote
 
 
 
 
hg
Guest
Posts: n/a
 
      09-14-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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[socket] test socket descriptor state mbm C Programming 2 09-27-2007 02:48 PM
file.readlines() - gives me error (bad file descriptor) wordsender@gmail.com Python 9 01-06-2005 02:02 PM
RE: file.readlines() - gives me error (bad file descriptor) Vishnu Python 0 01-06-2005 06:33 AM
File::Copy giving "Bad File Descriptor" from sysread Yary H Perl Misc 0 10-03-2004 05:33 PM
Threading issue: [Error 9]: bad file descriptor Kevin Python 4 07-07-2003 10:19 PM



Advertisments