AsperforMias opened a new pull request, #3832: URL: https://github.com/apache/dubbo-go/pull/3832
### Description Related to https://github.com/apache/dubbo-go/issues/3595; this does not close the issue. Remove the pending response when `getty.Client.RequestContext` returns through `ctx.Done()`. Return `ctx.Err()` without closing the shared session. The higher-level `ExchangeClient.RequestContext` already cleans up after transport errors. This change makes the lower-level getty API clean up its own cancellation path as well. Tests cover cancellation, late responses, session reuse, and concurrent response handling. Validation: package tests for `./remoting/` and `./remoting/getty/`, targeted race tests, vet, and getty lint passed. Touched files are gofmt-clean. Full getty race testing still encounters the existing `TestTCPPackageHandle` race, reproduced on the unmodified baseline. The module-wide Make targets were not run. ### Checklist - [x] I confirm the target branch is `develop` - [ ] I have run `make fmt` to format my code - [ ] I have run `make test` to run local tests - [x] I have added tests that prove my fix is effective or that my feature works -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
