usocket.socket.settimeout() not working on CC3200 port

Questions and discussion about The WiPy 1.0 board and CC3200 boards.
Target audience: Users with a WiPy 1.0 or CC3200 board.
Post Reply
danielm
Posts: 167
Joined: Mon Oct 05, 2015 12:24 pm

usocket.socket.settimeout() not working on CC3200 port

Post by danielm » Sat Jun 17, 2017 9:51 am

I tested on my own build from 12.6.2017 using simple code:

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()
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?

Post Reply