Commit a84316b8 authored by Denis Bilenko's avatar Denis Bilenko

http: set non-blocking mode on listening socket. Thanks to Ralf Schmitt.

parent 4b81fd14
......@@ -53,6 +53,7 @@ class HTTPServer(object):
pass
sock.bind(address)
sock.listen(backlog)
sock.setblocking(False)
return sock
def stop(self, timeout=0):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment