Use AF_INET if AF_UNIX isn't available (i.e. Windows)
This commit is contained in:
parent
4c9692264f
commit
faaff1d4ac
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user