SocketServer returns bad file descriptor

Thomas Wouters thomas at
Thu Jul 12 10:13:43 CEST 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 module can just be dropped into your current Python library
directory. You can get it through SourceForge, using ViewCVS:

Thomas Wouters <thomas at>

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

More information about the Python-list mailing list