Ticket #16099: multithreaded-2.diff

File multithreaded-2.diff, 791 bytes (added by jturnbull, 4 years ago)

Patch dealign only with the chrome issue, cleanly applies

  • django/core/servers/basehttp.py

     
    1414import urllib
    1515from wsgiref import simple_server
    1616from wsgiref.util import FileWrapper   # for backwards compatibility
     17from SocketServer import ThreadingMixIn
    1718
    1819import django
    1920from django.core.exceptions import ImproperlyConfigured
     
    6970        return ['\n'.join(traceback.format_exception(*sys.exc_info()))]
    7071
    7172
    72 class WSGIServer(simple_server.WSGIServer, object):
     73class WSGIServer(ThreadingMixIn, simple_server.WSGIServer, object):
    7374    """BaseHTTPServer that implements the Python WSGI protocol"""
    7475
    7576    def __init__(self, *args, **kwargs):
Back to Top