[ https://issues.apache.org/jira/browse/THRIFT-5607?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17568087#comment-17568087 ]
Yuxuan Wang commented on THRIFT-5607: ------------------------------------- I can't find TConnectionInfo on the [javadoc|https://www.javadoc.io/doc/org.apache.thrift/libthrift/latest/org/apache/thrift/package-summary.html], can you clarify what does it do? In Go API, [the interface of TProcessorFactory|https://pkg.go.dev/github.com/apache/thrift/lib/go/thrift#TProcessorFactory] is: {code:go} GetProcessor(trans TTransport) TProcessor {code} So most of the "connection info" should already be in the TTransport passed in. > Thrift GO API: how to customize TProcessorFactory::getProcessor() > ----------------------------------------------------------------- > > Key: THRIFT-5607 > URL: https://issues.apache.org/jira/browse/THRIFT-5607 > Project: Thrift > Issue Type: Question > Components: Go - Library > Affects Versions: 0.16.0 > Reporter: Paolo Elefante > Priority: Minor > Labels: features > > Hi there, > I have a question about the latest thrift's go api. > My goal is to do what I can do in C++ and Java: > overwrite the getProcessor method in the TProcessorFactory to add my custom > behavior. > In detail, I need to deal with ::apache::thrift::TConnectionInfo of the > incoming connection and reuse it. > This can be done in both C++ and Java. I'm looking for something similar in > the Thrift GO API. > Any ideas? > Thanks! > BR, Paolo -- This message was sent by Atlassian Jira (v8.20.10#820010)