From: Mark Slee Date: Wed, 6 Dec 2006 00:13:42 +0000 (+0000) Subject: Fix TSimpleServer exception bug X-Git-Tag: 0.2.0~1586 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=3860c9a2464d11f55daf983723c784f512aec530;p=common%2Fthrift.git 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 --- 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?