MCPcopy Create free account
hub / github.com/apache/thrift / releaseOneDescriptor

Function releaseOneDescriptor

lib/cpp/src/thrift/server/TServerFramework.cpp:98–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96
97template <typename T>
98static void releaseOneDescriptor(const string& name, T& pTransport) {
99 if (pTransport) {
100 try {
101 pTransport->close();
102 } catch (const TTransportException& ttx) {
103 string errStr = string("TServerFramework " + name + " close failed: ") + ttx.what();
104 TOutput::instance()(errStr.c_str());
105 }
106 }
107}
108
109void TServerFramework::serve() {
110 shared_ptr<TTransport> client;

Callers 1

serveMethod · 0.85

Calls 3

stringFunction · 0.85
closeMethod · 0.65
whatMethod · 0.45

Tested by

no test coverage detected