cpp: Minor TSocketPool cleanups
authorDavid Reiss <dreiss@apache.org>
Tue, 9 Mar 2010 05:20:28 +0000 (05:20 +0000)
committerDavid Reiss <dreiss@apache.org>
Tue, 9 Mar 2010 05:20:28 +0000 (05:20 +0000)
commit767c1a90fed87d36aaf077322bb9225eff98ee52
tree74d9259050c94d86340354fad23257060f67aa10
parent450c240592b35c9706832fc853e0345cf5800c0d
cpp: Minor TSocketPool cleanups

- Make sure the underlying socket is always closed.
- Don't reconnect on repeated calls to open.
- Move some code outside of a try block.

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