BobSong-dev opened a new pull request, #7338:
URL: https://github.com/apache/shenyu/pull/7338

   ## Background
   
   Cancelling a downstream SSE response did not consistently cancel the 
underlying upstream WebClient response. With cached SDK clients and retry or 
fallback paths, request state could also be shared across subscriptions, 
leaving upstream work running after the caller had disconnected.
   
   ## Changes
   
   - Add a request-local WebClient response filter that stops the raw response 
body when the downstream subscription is cancelled.
   - Create an independent cancellation signal for every stream subscription, 
including direct, retry, and fallback execution paths.
   - Preserve normal stream completion and shared-client subscription isolation.
   - Add regression coverage for cancellation before and after the first event, 
multiple subscriptions on a cached client, fallback cancellation, and normal 
completion.
   
   ## Verification
   
   - AI Proxy targeted tests: 69/69 passed; failures 0, errors 0, skipped 0.
   - Checkstyle: 0 violations.
   - RISC-V/QEMU reactor validation: 888 tests passed with 0 failures and 0 
errors; one pre-existing `@Disabled` test.
   - Real-model JSON/SSE and client-cancellation checks passed.
   - Legacy MCP and mixed coexistence checks were also revalidated.


-- 
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