diff options
author | Angus Gratton <angus@redyak.com.au> | 2023-11-08 17:35:28 +1100 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2023-11-20 18:48:25 +1100 |
commit | 57cce79a46f6ab7e990a626251ca8f9d59cd095a (patch) | |
tree | f8b233aa37ffb705e9be859478388b808ef63157 /docs/esp32/tutorial/intro.rst | |
parent | 6117aa686f5faac6692f0def91be8e40a696aca3 (diff) | |
download | micropython-57cce79a46f6ab7e990a626251ca8f9d59cd095a.tar.gz micropython-57cce79a46f6ab7e990a626251ca8f9d59cd095a.zip |
esp32/modsocket: Implement socket connect timeout.
LWIP doesn't implement a timeout for blocking connect(), and such a timeout
is not required by POSIX. However, CPython will use the socket timeout for
blocking connect on most platforms. The "principle of least surprise"
suggests we should support it on ESP32 as well (not to mention it's
useful!).
This provides the additional improvement that external exceptions (like
KeyboardInterrupt) are now handled immediately if they happen during
connect(). Previously Ctrl-C would not terminate a blocking connect until
connect() returned, but now it will.
Fixes issue #8326.
This work was funded through GitHub Sponsors.
Signed-off-by: Angus Gratton <angus@redyak.com.au>
Diffstat (limited to 'docs/esp32/tutorial/intro.rst')
0 files changed, 0 insertions, 0 deletions