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:
d6a02ff
)
THRIFT-567. cpp: Can't immediately stop a TSimpleServer thread that is idle
author
Bryan Duxbury
<bryanduxbury@apache.org>
Thu, 2 Sep 2010 15:16:56 +0000
(15:16 +0000)
committer
Bryan Duxbury
<bryanduxbury@apache.org>
Thu, 2 Sep 2010 15:16:56 +0000
(15:16 +0000)
This interrupts the server in addition to setting the stop flag.
Patch: Rush Manbert
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@991974
13f79535
-47bb-0310-9956-
ffa450edef68
lib/cpp/src/server/TSimpleServer.h
patch
|
blob
|
history
diff --git
a/lib/cpp/src/server/TSimpleServer.h
b/lib/cpp/src/server/TSimpleServer.h
index
c4fc91c
..
29e120e
100644
(file)
--- a/
lib/cpp/src/server/TSimpleServer.h
+++ b/
lib/cpp/src/server/TSimpleServer.h
@@
-58,6
+58,7
@@
class TSimpleServer : public TServer {
void stop() {
stop_ = true;
+ serverTransport_->interrupt();
}
protected: