Merge pull request #473 from jtanx/inet

Use AF_INET if AF_UNIX isn't available (i.e. Windows)
This commit is contained in:
Benoît Latinier 2018-08-07 15:11:15 +02:00 committed by GitHub
commit 5bc176d85b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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