Commit 4795c58f authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files Use SO_REUSEADDR to avoid errors on quick restart.

parent a88c30c6
......@@ -16,6 +16,7 @@ ai = socket.getaddrinfo("", 8080)
print("Bind address info:", ai)
addr = ai[0][4]
s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
print("Listening, connect your browser to")
Supports Markdown
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