Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix request timeouts in django >= v2.1.4 #85

Merged
merged 1 commit into from
Apr 2, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions sslserver/management/commands/runsslserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import sys

from django.core.servers.basehttp import WSGIRequestHandler
from django.core.servers.basehttp import WSGIServer
from django.core.servers.basehttp import ThreadedWSGIServer
from django.core.management.base import CommandError
from django.core.management.commands import runserver
from django.contrib.staticfiles.handlers import StaticFilesHandler
Expand All @@ -22,7 +22,7 @@
else:
upath = unicode

class SecureHTTPServer(WSGIServer):
class SecureHTTPServer(ThreadedWSGIServer):
def __init__(self, address, handler_cls, certificate, key, ipv6=False):
super(SecureHTTPServer, self).__init__(address, handler_cls, ipv6=ipv6)
self.socket = ssl.wrap_socket(self.socket, certfile=certificate,
Expand Down