Ticket #18336: basehttp.py.patch

File basehttp.py.patch, 555 bytes (added by anonymous, 13 years ago)
  • django/core/servers/basehttp.py

    diff --git a/django/core/servers/basehttp.py b/django/core/servers/basehttp.py
    index 82c5aca..5f7821d 100644
    a b def run(addr, port, wsgi_handler, ipv6=False, threading=False):  
    202202        httpd_cls = type('WSGIServer', (ThreadingMixIn, WSGIServer), {})
    203203    else:
    204204        httpd_cls = WSGIServer
     205    httpd_cls.request_queue_size = 10
    205206    httpd = httpd_cls(server_address, WSGIRequestHandler, ipv6=ipv6)
    206207    httpd.set_app(wsgi_handler)
    207208    httpd.serve_forever()
Back to Top