Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
We added connectivity check for each request on compiler generated server processor code in THRIFT-5240. It requires the server endpoint implementation to actually check for context error and return thrift.ErrAbandonRequest instead.
Now with minimal supported go version raised to 1.20, it's actually possible for compiler generated code to handle all those automatically, as long as the endpoint returns ctx.Err(), by using the new context.WithCancelCause API added in go 1.20.
Attachments
Issue Links
- links to