THRIFT-1211. java: When using THttpClient, non 200 responses leave the connection...
authorBryan Duxbury <bryanduxbury@apache.org>
Mon, 20 Jun 2011 21:42:17 +0000 (21:42 +0000)
committerBryan Duxbury <bryanduxbury@apache.org>
Mon, 20 Jun 2011 21:42:17 +0000 (21:42 +0000)
commit4b212b4b7f2f33277bcefcd68f3c678b2f9cff34
treefc4a3f6cd5c5b4ec12ba7e94d7498ec0d579456e
parente49a44ab1d8a386909ad6f52f503374041a2b583
THRIFT-1211. java: When using THttpClient, non 200 responses leave the connection open

This patch reorders the code so that we can close the connection in the case of an error.

Patch: Mathias Herberts

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1137794 13f79535-47bb-0310-9956-ffa450edef68
lib/java/src/org/apache/thrift/transport/THttpClient.java