Merge pull request #473 from jtanx/inet
Use AF_INET if AF_UNIX isn't available (i.e. Windows)
This commit is contained in:
commit
5bc176d85b
@ -200,7 +200,11 @@ class SocketHTTPServer(HTTPServer, ThreadingMixIn):
|
||||
multiprocess = False
|
||||
|
||||
allow_reuse_address = 1
|
||||
|
||||
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