Skip to content
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

Clear thread local error queue prior to calling SSL_* I/O functions #3633

Merged
merged 1 commit into from
Jul 17, 2023

Conversation

creslin2877
Copy link
Contributor

If we don't clear the thread local error queue with ERR_clear_error() prior to calling SSL_read/_write/etc functions, sometimes other bad/dead/ending connections leave stale errors which can be returned and falsely attributed to the current (and just fine) SSL connection when calling SSL_get_error()

For more details see issue #3632

…unctions, sometimes other connections leave stale errors which will be returned and falsely attributed to the current SSL connection when calling SSL_get_error()
@sauwming sauwming merged commit 1a324c6 into pjsip:master Jul 17, 2023
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

False SSL_ERROR_SSLs reported by openssl due to lack of per-thread error queue cleanup
4 participants