Skip to content

Randomly MQTT connection gets closed with error transport_read(): EOF (IDFGH-17049) #18088

@aggaddam

Description

@aggaddam

Answers checklist.

  • I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

General issue report

The MQTT client connection gets randomly disconnected while publishing/streaming data to mqtt broker over TLS, sharing device logs. Could anyone figure out if this issue is related to the broker side or the client side?

Environment:
ESP-IDF version: v5.4.1
Hardware: ESP32-C3

Logs:
E (4559962) mqtt_client: esp_mqtt_handle_transport_read_error: transport_read(): EOF
E (4559962) mqtt_client: esp_mqtt_handle_transport_read_error: transport_read() error: errno=119
E (4559969) MQTT_S: MQTT_EVENT_ERROR
E (4559973) MQTT_S: Last err code reported from esp-tls: 0x8008
E (4559979) MQTT_S: Last tls stack errno: 0x0
E (4559984) MQTT_S: Last captured errno : 0 (Success)
I (4559990) MQTT_S: esp_mqtt_task stack usage percent = (56)
E (4559997) mqtt_client: mqtt_process_receive: mqtt_message_receive() returned -2
E (4560007) MQTT_S: MQTT_EVENT_DISCONNECTED, Reason: 0, 1

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions