Repository navigation
Allow connection teardown even when cert selection is not yet complete - #46676
Merged
Merged
Conversation
Contributor
Author
|
See |
etruong42
force-pushed
the
ssltsan
branch
3 times, most recently
from
August 17, 2026 17:44
c85ab78 to
ac04214
Compare
Change-Id: I155b874accd54affa65bfa0b744ff99154060570 Signed-off-by: Ethan Truong <[email protected]>
etruong42
marked this pull request as ready for review
August 17, 2026 21:18
Contributor
Author
|
/assign ggreenway |
ggreenway
requested changes
Aug 19, 2026
ggreenway
left a comment
Member
There was a problem hiding this comment.
Please add a test for this case (which would fail/ENVOY_BUG without the fix)
/wait
| if (info_->state() != Ssl::SocketState::HandshakeBlockedOnAsyncOperation) { | ||
| IS_ENVOY_BUG(fmt::format("unexpected handshake state: {}", static_cast<int>(info_->state()))); | ||
| return; | ||
| if (info_->state() == Ssl::SocketState::HandshakeBlockedOnAsyncOperation) { |
Member
There was a problem hiding this comment.
Please add a comment explaining the circumstance where we're not in this state.
Member
|
Also, this needs a changelog entry, as it's a bug in a shipped version |
Change-Id: I47ec636d6ee12942b4d7bac1bdbb4f6c5714444c Signed-off-by: Ethan Truong <[email protected]>
Contributor
Author
|
Thank you for the review @ggreenway - this should be ready for another look. |
… the handshake is NOT in HandshakeBlockedOnAsyncOperation state Change-Id: Ice7851e50f04e79e72d31a1defd5dc3133131007 Signed-off-by: Ethan Truong <[email protected]>
ggreenway
approved these changes
Sep 3, 2026
phlax
pushed a commit
to phlax/envoy
that referenced
this pull request
Nov 13, 2026
envoyproxy#46676) envoyproxy#45755 allowed the socket state to transition to `ShutdownSent` before cert selection is complete (as intended). However, this could cause `ENVOY_BUG` to be thrown when `SslSocket::onAsynchronousCertificateSelectionComplete()` is invoked. This patch updates `SslSocket::onAsynchronousCertificateSelectionComplete` to allow this socket state which is consistent with the implementation of `SslSocket::onAsynchronousCertValidationComplete` and avoids the `ENVOY_BUG` in the case of valid states such as `ShutdownSent`. Signed-off-by: Ethan Truong <[email protected]> (cherry picked from commit 70f0729) Signed-off-by: Ryan Northey <[email protected]>
phlax
pushed a commit
to phlax/envoy
that referenced
this pull request
Nov 13, 2026
envoyproxy#46676) envoyproxy#45755 allowed the socket state to transition to `ShutdownSent` before cert selection is complete (as intended). However, this could cause `ENVOY_BUG` to be thrown when `SslSocket::onAsynchronousCertificateSelectionComplete()` is invoked. This patch updates `SslSocket::onAsynchronousCertificateSelectionComplete` to allow this socket state which is consistent with the implementation of `SslSocket::onAsynchronousCertValidationComplete` and avoids the `ENVOY_BUG` in the case of valid states such as `ShutdownSent`. Signed-off-by: Ethan Truong <[email protected]> (cherry picked from commit 70f0729) Signed-off-by: Ryan Northey <[email protected]>
phlax
pushed a commit
to phlax/envoy
that referenced
this pull request
Nov 13, 2026
envoyproxy#46676) envoyproxy#45755 allowed the socket state to transition to `ShutdownSent` before cert selection is complete (as intended). However, this could cause `ENVOY_BUG` to be thrown when `SslSocket::onAsynchronousCertificateSelectionComplete()` is invoked. This patch updates `SslSocket::onAsynchronousCertificateSelectionComplete` to allow this socket state which is consistent with the implementation of `SslSocket::onAsynchronousCertValidationComplete` and avoids the `ENVOY_BUG` in the case of valid states such as `ShutdownSent`. Signed-off-by: Ethan Truong <[email protected]> (cherry picked from commit 70f0729) Signed-off-by: Ryan Northey <[email protected]>
phlax
pushed a commit
to phlax/envoy
that referenced
this pull request
Nov 13, 2026
envoyproxy#46676) envoyproxy#45755 allowed the socket state to transition to `ShutdownSent` before cert selection is complete (as intended). However, this could cause `ENVOY_BUG` to be thrown when `SslSocket::onAsynchronousCertificateSelectionComplete()` is invoked. This patch updates `SslSocket::onAsynchronousCertificateSelectionComplete` to allow this socket state which is consistent with the implementation of `SslSocket::onAsynchronousCertValidationComplete` and avoids the `ENVOY_BUG` in the case of valid states such as `ShutdownSent`. Signed-off-by: Ethan Truong <[email protected]> (cherry picked from commit 70f0729) Signed-off-by: Ryan Northey <[email protected]>
phlax
pushed a commit
to phlax/envoy
that referenced
this pull request
Nov 17, 2026
envoyproxy#46676) envoyproxy#45755 allowed the socket state to transition to `ShutdownSent` before cert selection is complete (as intended). However, this could cause `ENVOY_BUG` to be thrown when `SslSocket::onAsynchronousCertificateSelectionComplete()` is invoked. This patch updates `SslSocket::onAsynchronousCertificateSelectionComplete` to allow this socket state which is consistent with the implementation of `SslSocket::onAsynchronousCertValidationComplete` and avoids the `ENVOY_BUG` in the case of valid states such as `ShutdownSent`. Signed-off-by: Ethan Truong <[email protected]> (cherry picked from commit 70f0729) Signed-off-by: Ryan Northey <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#45755 allowed the socket state to transition to
ShutdownSentbefore cert selection is complete (as intended). However, this could causeENVOY_BUGto be thrown whenSslSocket::onAsynchronousCertificateSelectionComplete()is invoked. This patch updatesSslSocket::onAsynchronousCertificateSelectionCompleteto allow this socket state which is consistent with the implementation ofSslSocket::onAsynchronousCertValidationCompleteand avoids theENVOY_BUGin the case of valid states such asShutdownSent.Change-Id: I155b874accd54affa65bfa0b744ff99154060570
Commit Message:
Additional Description:
Risk Level:
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Fixes commit #PR or SHA]
[Optional Deprecated:]
[Optional API Considerations:]