usocket.socket.settimeout() not working on CC3200 port
Posted: Sat Jun 17, 2017 9:51 am
I tested on my own build from 12.6.2017 using simple code:
In this point s.accept() hangs indefinitely if there is no connection from other host.
Some time ago I submitted GitHub issue: https://github.com/micropython/micropython/issues/2402
Does anybody have any idea how to solve this issue?
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?