zhaoguhong opened a new pull request, #6330:
URL: https://github.com/apache/shenyu/pull/6330

   ### Motivation
   
   `WebSocketPluginConfiguration` currently passes a mutable 
`WebsocketClientSpec.Builder` in a way that may cause builder state to be 
reused across WebSocket handshakes.
   
   Following the same approach discussed in Spring Cloud Gateway issue #2215 / 
PR #2216, each handshake should use a fresh builder instance to avoid 
cross-request state leakage.
   
   ### Description
   
   - Updated `WebSocketPluginConfiguration#reactorNettyWebSocketClient` to 
provide a `Supplier<WebsocketClientSpec.Builder>` that creates a **new builder 
on each invocation**.
   - Extended the existing `testReactorNettyWebSocketClient` (as requested) to 
verify behavior by checking that the internal builder supplier returns 
different builder instances across calls.
   
   ### Related Links
   
   - https://github.com/spring-cloud/spring-cloud-gateway/issues/2215
   - https://github.com/spring-cloud/spring-cloud-gateway/pull/2216


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to