[
https://issues.apache.org/jira/browse/THRIFT-5607?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sylwester Lachiewicz resolved THRIFT-5607.
------------------------------------------
Resolution: Incomplete
{{TProcessorFactory}} is an interface with {{GetProcessor(trans TTransport)
TProcessor}}
([processor_factory.go|https://github.com/apache/thrift/blob/master/lib/go/thrift/processor_factory.go]),
and {{NewTSimpleServerFactory2}} accepts any implementation, so per-connection
behaviour goes there; the transport argument is the accepted connection. The
follow-up question about TConnectionInfo has been unanswered since 2022.
Resolving as Incomplete; reopen with the missing detail.
_This comment was created with AI assistance._
> 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)