THRIFT-926. cpp: Better exception handling in TSimpleServer
authorDavid Reiss <dreiss@apache.org>
Wed, 6 Oct 2010 17:10:54 +0000 (17:10 +0000)
committerDavid Reiss <dreiss@apache.org>
Wed, 6 Oct 2010 17:10:54 +0000 (17:10 +0000)
commit25df8e7e4ae6bd889a76d1ffacc5ec64da241223
treedf9901a4a1c0a9a90d7aaf63a28cef9c664159ea
parent46e4f252dcc09b40f71635aaeb80476635aa8076
THRIFT-926. cpp: Better exception handling in TSimpleServer

Move processing code out of main try block and created individual
try/catch's for closing down the client and it's transports (to avoid
issues with throwing exceptions from a catch block).

Also converted to using GlobalOutput instead of cerr.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@1005171 13f79535-47bb-0310-9956-ffa450edef68
lib/cpp/src/server/TSimpleServer.cpp