If the internet quality isn't good, sometimes during reconnection, ssl.wrap_socket() blocks. The usually causes other coroutines to stop responding. In my case, this triggers WatchDog Timer to restart the MCU.
I found setting do_handshake = False in ssl_params solves the issue, as wrap_socket() doesn't try to do the handshake anymore.
My question is:
Is this expected behavior?
If so, would you kindly add it to the document, or make do_handshake = False the default behavior?
Much appreciated for the great project!
If the internet quality isn't good, sometimes during reconnection,
ssl.wrap_socket()blocks. The usually causes other coroutines to stop responding. In my case, this triggers WatchDog Timer to restart the MCU.I found setting
do_handshake = Falseinssl_paramssolves the issue, aswrap_socket()doesn't try to do the handshake anymore.My question is:
Is this expected behavior?
If so, would you kindly add it to the document, or make
do_handshake = Falsethe default behavior?Much appreciated for the great project!