Repository navigation
[ISSUE #8422] Add a WebSocket gateway runtime probe - #18
Open
weixiaobing1 wants to merge 1 commit into
Open
weixiaobing1 wants to merge 1 commit into
weixiaobing1 wants to merge 1 commit into
Conversation
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.
Related to apache/shenyu#8422.
Add a JDK-only WebSocket probe for the client-side runtime checks and document
how to run it against the migrated Spring example. The probe opens the full
gateway path, sends a unique payload, checks the exact echo, and requires a
normal close frame. Each phase has a deadline and reports a failure through
the process exit status.
This change is independently mergeable ahead of #16. Wiring the probe into
that PR's source-runtime harness, exercising
isFulland registry discovery,and checking route removal and sibling availability remain follow-up work.
Local verification
apache/shenyu@ada1872599eae871648d6760a05d7747459ea051and the separately builtshenyu-example-spring-native-websocketfromapache/shenyu-client-java#16@a37668298edef5c501e8b56a0595ed50ef895656with Spring Boot 3.3.1 and local discovery./ws-native/myWebSocketexchanged the exact echo and a normal close frame, and the backend observed close status 1000.e0b10bf67a5ad6b84ca3ead9ddcbbdde3c0aad39a8251ec36f19222ae67edec5../mvnw clean install -Dmaven.javadoc.skip=truepassed for all 30 modules on the PR branch with JDK 17.Make sure that:
./mvnw clean install -Dmaven.javadoc.skip=true.