You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by ro...@apache.org on 2014/07/07 21:49:06 UTC

git commit: THRIFT-2092 TNonblocking server should release handler as soon as connection closes

Repository: thrift
Updated Branches:
  refs/heads/master 1a5127b76 -> 464a3a443


THRIFT-2092 TNonblocking server should release handler as soon as connection closes

Patch: Konrad Grochowski


Project: http://git-wip-us.apache.org/repos/asf/thrift/repo
Commit: http://git-wip-us.apache.org/repos/asf/thrift/commit/464a3a44
Tree: http://git-wip-us.apache.org/repos/asf/thrift/tree/464a3a44
Diff: http://git-wip-us.apache.org/repos/asf/thrift/diff/464a3a44

Branch: refs/heads/master
Commit: 464a3a44328a290772defe4729b6b52fb2605ddf
Parents: 1a5127b
Author: Roger Meier <ro...@apache.org>
Authored: Mon Jul 7 21:48:28 2014 +0200
Committer: Roger Meier <ro...@apache.org>
Committed: Mon Jul 7 21:48:28 2014 +0200

----------------------------------------------------------------------
 lib/cpp/src/thrift/server/TNonblockingServer.cpp | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/thrift/blob/464a3a44/lib/cpp/src/thrift/server/TNonblockingServer.cpp
----------------------------------------------------------------------
diff --git a/lib/cpp/src/thrift/server/TNonblockingServer.cpp b/lib/cpp/src/thrift/server/TNonblockingServer.cpp
index 1552e89..43cdc50 100644
--- a/lib/cpp/src/thrift/server/TNonblockingServer.cpp
+++ b/lib/cpp/src/thrift/server/TNonblockingServer.cpp
@@ -840,6 +840,9 @@ void TNonblockingServer::TConnection::close() {
   factoryInputTransport_->close();
   factoryOutputTransport_->close();
 
+  // release processor and handler
+  processor_.reset();
+
   // Give this object back to the server that owns it
   server_->returnConnection(this);
 }