open_connection() doesn't fail #13023
Unanswered
skyguy
asked this question in
Using MicroPython
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
There seems to be a difference in behaviour between MicroPython (v.1.21) and CPython when using the
asyncio.open_connection()
function. If the destination port is not open and sends a TCP reset, CPython gives an exception inopen_connection()
, while MicroPython only gives an exception once you try toread()
from the stream.Is this just a timing optimisation where MicroPython doesn't wait around for the TCP reset?
Sample code:
Beta Was this translation helpful? Give feedback.
All reactions