In this point s.accept() hangs indefinitely if there is no connection from other host.
Code: Select all
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.settimeout(5) s.bind(('', 80)) s.listen(5) conn, addr = s.accept()
Some time ago I submitted GitHub issue: https://github.com/micropython/micropython/issues/2402
Does anybody have any idea how to solve this issue?