From e8abada6ad63306c38d2107601a5645ff8f1d22c Mon Sep 17 00:00:00 2001 From: pfung Date: Sat, 5 Jan 2008 23:23:53 +0000 Subject: [PATCH] [Thrift] disabling catching general type exceptions in Tthreadpoolserver the threadpoolserver should just crash if an unknown exception type is thrown. This should probably be true for all server types, will put this on the TODO list. reviewed by jwang test plan: network selector servers in production git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665412 13f79535-47bb-0310-9956-ffa450edef68 --- lib/cpp/src/server/TThreadPoolServer.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/cpp/src/server/TThreadPoolServer.cpp b/lib/cpp/src/server/TThreadPoolServer.cpp index 9f710f5e..b268c45b 100644 --- a/lib/cpp/src/server/TThreadPoolServer.cpp +++ b/lib/cpp/src/server/TThreadPoolServer.cpp @@ -56,9 +56,8 @@ public: cerr << "TThreadPoolServer exception: " << x.what() << endl; } catch (std::exception &x) { cerr << "TThreadPoolServer, std::exception: " << x.what() << endl; - } catch (...) { - cerr << "TThreadPoolServer uncaught exception." << endl; } + if (eventHandler != NULL) { eventHandler->clientEnd(input_, output_); } -- 2.17.1