SocketServer returns bad file descriptor

Thomas Wouters thomas at xs4all.net
Thu Jul 12 04:13:43 EDT 2001


On Wed, Jul 11, 2001 at 07:22:04AM -0700, phillip wrote:
> I use the following from an example
> 
> class TestHandler(SocketServer.StreamRequestHandler):

[..]

> But every time I connect I get the following error : 

> self.rfile + self.connection.makefile('rb', self.rbufsize) error: (9,
> 'Bad file descriptor')

This looks suspiciously like a bad bug Guido fixed in the SocketServer
module just a few days ago. If so, it'll be fixed in Python 2.2 and Python
2.1.1 (of which the release candidate should be released tomorrow, if all
goes well.) You can grab the CVS tree for either and find out -- the
SocketServer.py module can just be dropped into your current Python library
directory. You can get it through SourceForge, using ViewCVS:

http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/~checkout~/python/python/dist/src/Lib/SocketServer.py?rev=1.24.2.1&content-type=text/plain

-- 
Thomas Wouters <thomas at xs4all.net>

Hi! I'm a .signature virus! copy me into your .signature file to help me spread!




More information about the Python-list mailing list