THRIFT-1064 TClientInfoServerHandler::processContext() is not called for TNonblocking...
authorRoger Meier <roger@apache.org>
Wed, 18 Jul 2012 05:42:51 +0000 (05:42 +0000)
committerRoger Meier <roger@apache.org>
Wed, 18 Jul 2012 05:42:51 +0000 (05:42 +0000)
Patch: Pavlin Radoslavov

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1362773 13f79535-47bb-0310-9956-ffa450edef68

lib/cpp/src/thrift/server/TNonblockingServer.cpp

index 3e95508..cac7a0a 100644 (file)
@@ -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_);