From faaff1d4acaad42fc6485ce2090875ade265ea43 Mon Sep 17 00:00:00 2001 From: Jeremy Tan Date: Tue, 7 Aug 2018 20:44:16 +1000 Subject: [PATCH] Use AF_INET if AF_UNIX isn't available (i.e. Windows) --- isso/wsgi.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/isso/wsgi.py b/isso/wsgi.py index 864d017..c826289 100644 --- a/isso/wsgi.py +++ b/isso/wsgi.py @@ -200,7 +200,11 @@ class SocketHTTPServer(HTTPServer, ThreadingMixIn): multiprocess = False allow_reuse_address = 1 - address_family = socket.AF_UNIX + + try: + address_family = socket.AF_UNIX + except AttributeError: + address_family = socket.AF_INET request_queue_size = 128