commit | a5a783f9534dc8a5bdd11d8da1472091859bc79b | [log] [tgz] |
---|---|---|
author | Mark Slee <mcslee@apache.org> | 周五 3月 02 19:41:08 2007 +0000 |
committer | Mark Slee <mcslee@apache.org> | 周五 3月 02 19:41:08 2007 +0000 |
tree | 22d29357c2b93ba106cc94d7c0ff00b600342aeb | |
parent | 6e3f637bab9bb19621382047d413100fe6c44e0a [diff] [blame] |
Server robustness fixes in Thrift C++ libs Summary: ServerSockets can be interrupt() ed Reviewed By: marc, karl git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665039 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/cpp/src/server/TThreadPoolServer.h b/lib/cpp/src/server/TThreadPoolServer.h index f6809fc..bdb0e47 100644 --- a/lib/cpp/src/server/TThreadPoolServer.h +++ b/lib/cpp/src/server/TThreadPoolServer.h
@@ -41,7 +41,10 @@ virtual void serve(); - virtual void stop() { stop_ = true; } + virtual void stop() { + stop_ = true; + serverTransport_->interrupt(); + } protected: