There is an easy way to turn on multi-threading for the default server, see the diff below:
Index: basehttp.py =================================================================== --- basehttp.py (revision 4183) +++ basehttp.py (working copy) @@ -7,10 +7,16 @@ been reviewed for security issues. Don't use it for production use. """ -from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer +from BaseHTTPServer import BaseHTTPRequestHandler from types import ListType, StringType import os, re, sys, time, urllib +import BaseHTTPServer, SocketServer +class HTTPServer(SocketServer.ThreadingMixIn, BaseHTTPServer.HTTPServer): + def __init__(self, server_address, RequestHandlerClass=None): + BaseHTTPServer.HTTPServer.__init__(self, server_address, RequestHandlerClass ) + print '*** MixinHTTPServer ***' + __version__ = "0.1" __all__ = ['WSGIServer','WSGIRequestHandler','demo_app'] --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-developers?hl=en -~----------~----~----~----~------~----~------~--~---
