[ https://issues.apache.org/jira/browse/THRIFT-5731?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jens Geyer resolved THRIFT-5731. -------------------------------- Fix Version/s: 0.19.0 Resolution: Fixed > 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 > Priority: Major > Fix For: 0.19.0 > > Time Spent: 20m > Remaining Estimate: 0h > > 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)