Code Review
/
common
/
thrift.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
1a5127b
)
THRIFT-2092 TNonblocking server should release handler as soon as connection closes
author
Roger Meier
<roger@apache.org>
Mon, 7 Jul 2014 19:48:28 +0000
(21:48 +0200)
committer
Roger Meier
<roger@apache.org>
Mon, 7 Jul 2014 19:48:28 +0000
(21:48 +0200)
Patch: Konrad Grochowski
lib/cpp/src/thrift/server/TNonblockingServer.cpp
patch
|
blob
|
history
diff --git
a/lib/cpp/src/thrift/server/TNonblockingServer.cpp
b/lib/cpp/src/thrift/server/TNonblockingServer.cpp
index
1552e89
..
43cdc50
100644
(file)
--- 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);
}