Yuxuan Wang created THRIFT-5731:
-----------------------------------

             Summary: go: Handle client connectivity check in server 
automatically
                 Key: THRIFT-5731
                 URL: https://issues.apache.org/jira/browse/THRIFT-5731
             Project: Thrift
          Issue Type: Improvement
          Components: Go - Compiler
            Reporter: Yuxuan Wang
            Assignee: Yuxuan Wang


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.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to