From 3860c9a2464d11f55daf983723c784f512aec530 Mon Sep 17 00:00:00 2001 From: Mark Slee Date: Wed, 6 Dec 2006 00:13:42 +0000 Subject: [PATCH] Fix TSimpleServer exception bug Reviewed By: tbr-martin git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664886 13f79535-47bb-0310-9956-ffa450edef68 --- lib/cpp/src/server/TSimpleServer.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/cpp/src/server/TSimpleServer.cpp b/lib/cpp/src/server/TSimpleServer.cpp index b453ce65..8d62bf99 100644 --- a/lib/cpp/src/server/TSimpleServer.cpp +++ b/lib/cpp/src/server/TSimpleServer.cpp @@ -40,6 +40,8 @@ void TSimpleServer::serve() { } } catch (TTransportException& ttx) { cerr << "TSimpleServer client died: " << ttx.what() << endl; + } catch (TException& tx) { + cerr << "TSimpleServer exception: " << tx.what() << endl; } iot.first->close(); iot.second->close(); @@ -47,6 +49,8 @@ void TSimpleServer::serve() { } } catch (TTransportException& ttx) { cerr << "TServerTransport died on accept: " << ttx.what() << endl; + } catch (TException& tx) { + cerr << "Some kind of accept exception: " << tx.what() << endl; } // TODO(mcslee): Could this be a timeout case? Or always the real thing? -- 2.17.1