TLS memory leak

User avatar
TheRealRevK
Posts: 9
Joined: Mon Aug 26, 2019 7:32 pm

TLS memory leak

Postby TheRealRevK » Wed Jun 30, 2021 10:43 am

ESP IDF commit c13afea635adec735435961270d0894ff46eef85

I have mqtt with reconnect over TLS. However, if the connection fails uncleanly it loses around 5k of RAM and eventually says it cannot connect.

Does TLS have a memory leak?

E.g.

Code: Select all

E (2564535) MQTT_CLIENT: mqtt_message_receive: transport_read() error: errno=128
E (2564536) MQTT_CLIENT: mqtt_process_receive: mqtt_message_receive() returned -1
I (2564543) RevK: MQTT disconnect (mem:147996)
I (2576709) RevK: MQTT connect
E (2593717) MQTT_CLIENT: mqtt_message_receive: transport_read() error: errno=128
E (2593718) MQTT_CLIENT: mqtt_process_receive: mqtt_message_receive() returned -1
I (2593726) RevK: MQTT disconnect (mem:142860)
I (2605897) RevK: MQTT connect
E (2617487) MQTT_CLIENT: mqtt_message_receive: transport_read() error: errno=128
E (2617488) MQTT_CLIENT: mqtt_process_receive: mqtt_message_receive() returned -1
I (2617495) RevK: MQTT disconnect (mem:137720)

Who is online

Users browsing this forum: No registered users and 353 guests