dengliming opened a new pull request, #7274: URL: https://github.com/apache/shenyu/pull/7274
## Summary - Drain/release an unconsumed WebClient response body when the downstream plugin chain errors or is cancelled before response writing starts. - Defer chain execution so synchronous plugin exceptions also enter the cleanup path. - Keep the new cleanup hooks on the chain stage, leaving successful response writing unchanged. Fixes #6793 ## Validation - `./mvnw -pl shenyu-plugin/shenyu-plugin-response -am -Dtest=WebClientChainCleanupTest,WebClientMessageWriterTest -DfailIfNoTests=false test` - Checkstyle enabled. Pooled Netty buffer tests verify one body subscription and reference count zero for synchronous/reactive chain errors and cancellation; missing-response errors remain unchanged. - No live connection-pool load test was run. -- 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]
