SPUERSAIYAN opened a new pull request, #6359: URL: https://github.com/apache/shenyu/pull/6359
Fixes #6358 Fixes resource leak in sandbox proxy requests. `SandboxServiceImpl.requestProxyGateway` now closes the OkHttp `Response` returned by `HTTP_UTILS.requestCall(...)` with try-with-resources, consistent with existing usage in `PullSwaggerDocServiceImpl` and `HttpUtils`. A focused regression test was added to verify the proxied response body is copied through the sandbox service. Make sure that: * [x] You have read the [[contribution guidelines](https://shenyu.apache.org/community/contributor-guide)](https://shenyu.apache.org/community/contributor-guide). * [x] You submit test cases (unit or integration tests) that back your changes. * [ ] Your local test passed `./mvnw clean install -Dmaven.javadoc.skip=true`. Verification: * `mvn -pl shenyu-admin -am -Dtest=SandboxServiceImplTest -DfailIfNoTests=false -DfailIfNoSpecifiedTests=false test` -- 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]
