-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
SSL_Write returns error with SSL_ERROR_SYSCALL and errno=0 #2767
Comments
This issue is not happening with mosquitto 2.0.14 library. |
You may would like to see my comment that I mentioned your issue. It is related to libmosquitto not being able to handle EOF and other non-fatal SSL errors. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
Mosquitto client version 2.0.15
Linux - alpine linux aarch64
openssl 1.1.1q
The mosquitto client SSL connection sometimes disconnects with rc=14 and the errno is EPROTO
we added a log message in
net__handle_ssl
as belowAnd the received log print is as below
Client: XXXXXXXX, SSL_ERROR_SYSCALL, ret: -1, err: 5, errno: 0, is_read: 0
SSL_Write is returning -1 and SSL_get_error returns 5 (SSL_ERROR_SYSCALL) with errno 0.
Unable to understand the reason for this error.
Due to this behavior, the mosquitto_loop ends and returns with MOSQ_ERR_ERRNO (14) and doesn't attempt to reconnect.
Appreciate your help in debugging the reason for this error
Thanks
The text was updated successfully, but these errors were encountered: