ITADN

`ssl.wrap_socket()` hangs on reconnecting

#171OpenSteveLTN 创建于 2025-04-30
S
SteveLTNcommented
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!
14 条评论