From: pfung Date: Sat, 5 Jan 2008 23:23:53 +0000 (+0000) Subject: [Thrift] disabling catching general type exceptions in Tthreadpoolserver X-Git-Tag: 0.2.0~1060 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=e8abada6ad63306c38d2107601a5645ff8f1d22c;p=common%2Fthrift.git [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 --- 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_); }