From: Roger Meier Date: Wed, 18 Jul 2012 05:42:51 +0000 (+0000) Subject: THRIFT-1064 TClientInfoServerHandler::processContext() is not called for TNonblocking... X-Git-Tag: 0.9.1~328 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=ae44abc6f93165968d82b7b7e50b4c5b99f5c332;p=common%2Fthrift.git THRIFT-1064 TClientInfoServerHandler::processContext() is not called for TNonblockingServer server event handler Patch: Pavlin Radoslavov git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1362773 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/lib/cpp/src/thrift/server/TNonblockingServer.cpp b/lib/cpp/src/thrift/server/TNonblockingServer.cpp index 3e95508e..cac7a0a1 100644 --- a/lib/cpp/src/thrift/server/TNonblockingServer.cpp +++ b/lib/cpp/src/thrift/server/TNonblockingServer.cpp @@ -615,6 +615,10 @@ void TNonblockingServer::TConnection::transition() { return; } else { try { + if (serverEventHandler_ != NULL) { + serverEventHandler_->processContext(connectionContext_, + getTSocket()); + } // Invoke the processor processor_->process(inputProtocol_, outputProtocol_, connectionContext_);