Repository navigation
feat(engine): support connect aborted zilla:reset.ext matcher - #2115
Merged
Merged
Conversation
Wires the k3po language extension added to connect aborted (aklivity/k3po#19) into zilla's k3po test transport, so the client side of a rejected handshake can assert the exact RESET extension it received instead of just observing connect aborted with no verification: connect aborted zilla:reset.ext [0x12 0x34] [0x0c] "Hello, world" - ZillaTarget.onResetBeforeHandshake: capture the incoming RESET's real extension bytes and stage them (channel.writeExtBuffer(RESET, false)), mirroring the existing mid-stream onReset staging. Previously this method discarded the extension entirely. - AbstractReadExtHandler: implement k3po's new DecodingHandler marker interface (getDecoder()) so the existing CONFIG_RESET_EXT read-config factory registration can be reused by ConnectAbortedHandler outside its usual WRITE_ABORTED-event-triggered context. - Strengthened the handshake.reset.ext.rejected client scripts (simplex/half-duplex/duplex) to assert the extension content instead of a bare `connect aborted`, closing the gap where the prior test only proved the server didn't crash, not that the bytes arrived correctly. Verified with a negative control (corrupting the expected byte content) that the assertion genuinely fails with a clear expected-vs-actual diff, and passes once restored. Co-Authored-By: Claude Sonnet 5 <[email protected]> Claude-Session: https://claude.ai/code/session_014gSmK7DTu83C9fHYQBtZfw
Includes k3po#20 (connect aborted zilla:reset.ext matcher), released as 3.4.5.
jfallows
marked this pull request as ready for review
July 10, 2026 18:12
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.
Description
Wires zilla's k3po test transport into the
connect aborted zilla:reset.ext ...matcher syntax added by k3po#20 (fixes k3po#17), so scripts can assert the RESET extension bytes sent when a handshake is rejected, not just that the connect aborted.ZillaTarget.Throttle.onResetBeforeHandshakenow captures the RESET extension bytes and writes them into the read-ext buffer, mirroring the existing mid-streamonResethandling.AbstractReadExtHandlernow implements k3po driver'sDecodingHandlermarker interface, exposing its internalChannelDecodersoConnectAbortedHandlercan reuse it to verify the extension.handshake.reset.ext.rejectedclient scripts (duplex, half-duplex, simplex) to assert the RESET extension content instead of justconnect aborted.k3po.versionto3.4.5, which contains k3po#20.Test plan
./mvnw -pl runtime/engine clean verify -Dit.test=DuplexIT,SimplexIT,HalfDuplexIT— 0 failures against released k3po 3.4.5, including genuine byte-level verification of the RESET extension (confirmed with a negative control: a deliberately mismatched extension fails with a clear diff)