Skip to content

Cherry pick #116692 to 26.9: Prevent stale OpenSSL errors from breaking asynchronous TLS connections - #122028

Merged
PedroTadim merged 22 commits into
backport/26.9/116692from
cherrypick/26.9/116692
Oct 1, 2026
Merged

PedroTadim merged 22 commits into
backport/26.9/116692from
cherrypick/26.9/116692

Conversation

@robot-ch-test-poll3

Copy link
Copy Markdown
Contributor

Original pull-request #116692

Do not merge this PR manually

This pull-request is a first step of an automated backporting.
It contains changes similar to calling git cherry-pick locally.
If you intend to continue backporting the changes, then resolve all conflicts if any.
Otherwise, if you do not want to backport them, then just close this pull-request.

The check results does not matter at this step - you can safely ignore them.

Before you resolve anything

Conflicts are often caused by a prerequisite change that has not been backported yet, rather than by a real divergence. The bot re-tries this cherry-pick against the release branch on every run, so if that is the case here it will merge itself as soon as the prerequisite lands, and you will see a comment saying so. Manual resolution is only needed while the conflict persists.

Troubleshooting

If the conflicts were resolved in a wrong way

If this cherry-pick PR is completely screwed by a wrong conflicts resolution, and you want to recreate it:

  • delete the pr-cherrypick label from the PR
  • delete this branch from the repository

You also need to check the Original pull-request for pr-backports-created label, and delete if it's presented there

The PR source

The PR is created in the CI job

otselnik and others added 21 commits August 27, 2026 11:02
Address `catch_all` and `arm_tidy` diagnostics in the new TLS regression tests while keeping cleanup failures visible.

#116692
Record fatal probe failures in `SecureSocketImpl` so later `shutdown` skips the forbidden `SSL_shutdown` path.

Related: #116692
Clear errno before each `performSSLOperation` invocation so a stale retriable value cannot affect OpenSSL error classification.

Initialize `SSLSocketStateResult` for static analysis and add a custom `BIO` regression test for the empty error-queue path.

Related: #116692
…916-openssl-error-queue

# Conflicts:
#	base/poco/NetSSL_OpenSSL/src/SecureSocketImpl.cpp
…sl-error-queue

Prevent stale OpenSSL errors from breaking asynchronous TLS connections
@robot-ch-test-poll3 robot-ch-test-poll3 added pr-cherrypick Cherry-pick of merge-commit before backporting. Do not use manually - automated use only! do not test disable testing on pull request pr-bugfix Pull request with bugfix, not backported by default labels Sep 24, 2026
@thevar1able thevar1able reopened this Sep 28, 2026
@robot-clickhouse-ci-2

Copy link
Copy Markdown
Contributor

Dear @thevar1able, this PR is opened while #116692 was marked as backported. The pr-backports-created is removed, so the original PR can be processed again.

If the cherry-pick is not needed anymore, then just close this PR.

Resolve conflicts caused by #116136 (TLS handshake
profile events) not being present in 26.9, the same way as the 26.8 backport
(#122197): keep the inline `SSL_connect` loop and the old
`completeHandshake`, routed through `performSSLOperation`. 26.9 has `Silk::spawn`, so the new Silk tests stay.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@PedroTadim
PedroTadim merged commit a20a11d into backport/26.9/116692 Oct 1, 2026
1 check passed
@PedroTadim
PedroTadim deleted the cherrypick/26.9/116692 branch October 1, 2026 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do not test disable testing on pull request pr-bugfix Pull request with bugfix, not backported by default pr-cherrypick Cherry-pick of merge-commit before backporting. Do not use manually - automated use only!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants