Repository navigation
test: Rename connection_compatbility_test to connection_compatibility_test - #47867
Merged
Merged
Conversation
Signed-off-by: Eugene Chan <[email protected]>
pianiststickman
marked this pull request as ready for review
September 29, 2026 19:44
kyessenov
approved these changes
Sep 29, 2026
phlax
pushed a commit
to phlax/envoy
that referenced
this pull request
Nov 17, 2026
…nvoyproxy#48409) An internal connection can enter `CloseAfterFlush` while its peer's receive buffer is full, leaving only Write enabled and no callback scheduled. If the peer then closes, the EOF notification cannot wake that writer, so the connection can remain stuck retaining its pending output. Activate an enabled Write event after clearing the peer state. The pending flush then observes the write error and closes. This complements envoyproxy#43976, which makes a closed peer write-unblocked when readiness is checked but does not schedule a callback for a writer that was already blocked. Risk Level: Medium Runtime Guard: N/A Docs Changes: N/A Release Notes: Added a bug-fix fragment describing retained-buffer cleanup. AI assistance: Codex assisted with investigation, implementation, tests, and review. Signed-off-by: Harry Bagdi <[email protected]> Backport note (release/v1.39): `onPeerDestroy()` is inline in `io_handle_impl.h` on this branch, so the wakeup goes there. The connection test goes in `connection_compatbility_test.cc` (renamed by envoyproxy#47867, not on this branch) and is not parameterized on `enable_send_rst_on_user_space_socket`, which this branch does not have. (cherry picked from commit 30a4db3) Signed-off-by: Ryan Northey <[email protected]>
phlax
pushed a commit
to phlax/envoy
that referenced
this pull request
Nov 17, 2026
…nvoyproxy#48409) An internal connection can enter `CloseAfterFlush` while its peer's receive buffer is full, leaving only Write enabled and no callback scheduled. If the peer then closes, the EOF notification cannot wake that writer, so the connection can remain stuck retaining its pending output. Activate an enabled Write event after clearing the peer state. The pending flush then observes the write error and closes. This complements envoyproxy#43976, which makes a closed peer write-unblocked when readiness is checked but does not schedule a callback for a writer that was already blocked. Risk Level: Medium Runtime Guard: N/A Docs Changes: N/A Release Notes: Added a bug-fix fragment describing retained-buffer cleanup. AI assistance: Codex assisted with investigation, implementation, tests, and review. Signed-off-by: Harry Bagdi <[email protected]> Backport note (release/v1.39): `onPeerDestroy()` is inline in `io_handle_impl.h` on this branch, so the wakeup goes there. The connection test goes in `connection_compatbility_test.cc` (renamed by envoyproxy#47867, not on this branch) and is not parameterized on `enable_send_rst_on_user_space_socket`, which this branch does not have. (cherry picked from commit 30a4db3) Signed-off-by: Ryan Northey <[email protected]>
phlax
pushed a commit
to phlax/envoy
that referenced
this pull request
Nov 17, 2026
…nvoyproxy#48409) An internal connection can enter `CloseAfterFlush` while its peer's receive buffer is full, leaving only Write enabled and no callback scheduled. If the peer then closes, the EOF notification cannot wake that writer, so the connection can remain stuck retaining its pending output. Activate an enabled Write event after clearing the peer state. The pending flush then observes the write error and closes. This complements envoyproxy#43976, which makes a closed peer write-unblocked when readiness is checked but does not schedule a callback for a writer that was already blocked. Risk Level: Medium Runtime Guard: N/A Docs Changes: N/A Release Notes: Added a bug-fix fragment describing retained-buffer cleanup. AI assistance: Codex assisted with investigation, implementation, tests, and review. Signed-off-by: Harry Bagdi <[email protected]> Backport note (release/v1.38): `onPeerDestroy()` is inline in `io_handle_impl.h` on this branch, so the wakeup goes there. The connection test goes in `connection_compatbility_test.cc` (renamed by envoyproxy#47867, not on this branch) and is not parameterized on `enable_send_rst_on_user_space_socket`, which this branch does not have. (cherry picked from commit 30a4db3) Signed-off-by: Ryan Northey <[email protected]>
phlax
pushed a commit
to phlax/envoy
that referenced
this pull request
Nov 17, 2026
…nvoyproxy#48409) An internal connection can enter `CloseAfterFlush` while its peer's receive buffer is full, leaving only Write enabled and no callback scheduled. If the peer then closes, the EOF notification cannot wake that writer, so the connection can remain stuck retaining its pending output. Activate an enabled Write event after clearing the peer state. The pending flush then observes the write error and closes. This complements envoyproxy#43976, which makes a closed peer write-unblocked when readiness is checked but does not schedule a callback for a writer that was already blocked. Risk Level: Medium Runtime Guard: N/A Docs Changes: N/A Release Notes: Added a bug-fix fragment describing retained-buffer cleanup. AI assistance: Codex assisted with investigation, implementation, tests, and review. Signed-off-by: Harry Bagdi <[email protected]> Backport note (release/v1.38): `onPeerDestroy()` is inline in `io_handle_impl.h` on this branch, so the wakeup goes there. The connection test goes in `connection_compatbility_test.cc` (renamed by envoyproxy#47867, not on this branch) and is not parameterized on `enable_send_rst_on_user_space_socket`, which this branch does not have. (cherry picked from commit 30a4db3) 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.
Commit Message: test: rename connection_compatbility_test to connection_compatibility_test
Additional Description: http://en.wiktionary.org/wiki/compatibility
Risk Level: none
Testing: it builds
Docs Changes: n/a
Release Notes: n/a
Platform Specific Features: n/a