diff options
author | Damien George <damien.p.george@gmail.com> | 2014-01-26 17:41:46 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-01-26 17:41:46 +0000 |
commit | 5bd56fbf132585ece9ac5d5a72d569f62fe4a42c (patch) | |
tree | c50675c0d809f52190dde7e30382e5cb37879038 /examples | |
parent | 75abee206d1a575aa98a486d043c94d64df432c1 (diff) | |
parent | 4795c58f3cfacb20e3b991fec7b78d59a8dcabff (diff) | |
download | micropython-5bd56fbf132585ece9ac5d5a72d569f62fe4a42c.tar.gz micropython-5bd56fbf132585ece9ac5d5a72d569f62fe4a42c.zip |
Merge branch 'master' of github.com:micropython/micropython
Diffstat (limited to 'examples')
-rw-r--r-- | examples/unix/sock-server.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/unix/sock-server.py b/examples/unix/sock-server.py index ed14b7f31e..f08aede3c1 100644 --- a/examples/unix/sock-server.py +++ b/examples/unix/sock-server.py @@ -16,6 +16,7 @@ ai = socket.getaddrinfo("127.0.0.1", 8080) print("Bind address info:", ai) addr = ai[0][4] +s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) s.bind(addr) s.listen(5) print("Listening, connect your browser to http://127.0.0.1:8080/") |