You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using mosquitto as client library (on an embedded device) with a TLSv1.1 or TLSv1.2 connection, the call to mosquitto_disconnect(mosq) never returns, and the program uses lots of CPU. The problem does not occur with TLSv1.
Details
Using strace, I observe the following message being continuously repeated until the program is killed:
Short description
When using mosquitto as client library (on an embedded device) with a TLSv1.1 or TLSv1.2 connection, the call to
mosquitto_disconnect(mosq)
never returns, and the program uses lots of CPU. The problem does not occur with TLSv1.Details
Using strace, I observe the following message being continuously repeated until the program is killed:
I have traced down the problem to the call to
SSL_write
for theDISCONNECT
packet https://github.com/eclipse/mosquitto/blob/master/lib/net_mosq.c#L820 which never returns. Using the following modification:Using TLSv1
Using TLSv1.1 or TLSv1.2
I obtain the following output, and I see no network activity with Wireshark:
It only happens for the
DISCONNECT
packet, all other messages are exchanged without trouble.Software versions
On the same device, a TLSv1.2 connection with libcurl is properly terminated.
EDIT: added output for TLSv1
The text was updated successfully, but these errors were encountered: