Multithreading support for BaseHTTPServer

Michael Ströder michael at stroeder.com
Tue Aug 28 14:48:10 EDT 2001


Gerson Kurz wrote:
> 
> class HTTPServer(SocketServer.TCPServer):
> [..]
>   File "D:\Python21\Lib\BaseHTTPServer.py", line 262, in handle
>     self.raw_requestline = self.rfile.readline()
>   File "d:\python21\lib\socket.py", line 233, in readline
>     new = self._sock.recv(self._rbufsize)
> AttributeError: 'int' object has no attribute 'recv'
> 
> Any ideas? Any simple method of multithreading BaseHTTPServer?

Python 2.1? Grab 2.1.1 which probably contains the fix for that.

Ciao, Michael.



More information about the Python-list mailing list