-
Notifications
You must be signed in to change notification settings - Fork 7.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TW#27831] esp_mqtt reconnect error: TRANS_SSL: esp_tls_conn_read error, errno=Socket is not connected (IDFGH-2975) #2805
Comments
Hi @rustyx It is a bug in ssl transport component. There is already a fix ready in Espressif internal repo, but that still needs to be verified, merged and published to GitHub. I am attaching a oneliner patch that should address the issue (before it is available in GitHub) Thanks, David |
@david-cermak I confirm it works for me. |
Hi @syed00727 One reason for this kind of error could be a memory corruption. |
Environment
Problem Description
I'm trying out the new esp_mqtt library with an mqtts:// (TSL) connection.
My MQTT server is mosquitto v1.5.3.
The issue is whenever the mqtt server is restarted, the esp_mqtt task hangs with the following messages in the log:
Other error scenarios like Wi-Fi reconnection, are handled correctly; esp_mqtt is then able to reconnect properly. It is only when the MQTT server connection is closed is it not able to reconnect.
The text was updated successfully, but these errors were encountered: