Repository navigation
Backport #122222 to 26.3: Do not wait for the peer in TLS shutdown when a write is still pending - #122414
Conversation
…en a write is still pending
|
Workflow [BackportPR], commit [23e86fa] Summary: ✅ |
|
The build fails only in The fix is one commit on top of this PR's head Checked on 26.3 with this commit (clang-21, Debug, I cannot push to this repository, so to apply it: |
The test came from master, which has two things 26.3 does not: `EphemeralCert::makeContext` as a member (26.3 keeps the free function `makeContext(cert, usage)`), and the `ssl()` accessor on `Poco::Net::SecureStreamSocketImpl`. Adapt the two call sites to the free function, and backport the `ssl()` accessors from master rather than drop the assertions that use them: `SSL_want_write` pins that the read replaced the reported SSL state while the write stayed pending, and `SSL_SENT_SHUTDOWN` keeps skipping the orderly shutdown from passing the test. CI report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=122414&sha=a730c74e96e12c6d0e438438a4c62f4b1ccc4883&name_0=BackportPR&name_1=Build%20%28amd_debug%29 Related: #122414 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Original pull-request #122222
This pull-request is a last step of an automated backporting.
Treat it as a standard pull-request: look at the checks and resolve conflicts.
Merge it only if you intend to backport changes to the target branch, otherwise just close it.
The PR source
The PR is created in the CI job
Version info
26.3.35.6