From 383e9495667afbd686beb89bb510433fdd4cfe82 Mon Sep 17 00:00:00 2001 From: Bryan Duxbury Date: Thu, 2 Sep 2010 15:16:56 +0000 Subject: [PATCH] THRIFT-567. cpp: Can't immediately stop a TSimpleServer thread that is idle 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 | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/cpp/src/server/TSimpleServer.h b/lib/cpp/src/server/TSimpleServer.h index c4fc91c7..29e120e1 100644 --- 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: -- 2.17.1