We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a88c30c commit 4795c58Copy full SHA for 4795c58
1 file changed
examples/unix/sock-server.py
@@ -16,6 +16,7 @@
16
print("Bind address info:", ai)
17
addr = ai[0][4]
18
19
+s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
20
s.bind(addr)
21
s.listen(5)
22
print("Listening, connect your browser to http://127.0.0.1:8080/")
0 commit comments