[thrift] java httpclient needs to close its inputstream
authoreletuchy <dev-null@apache.org>
Mon, 25 Jun 2007 18:29:28 +0000 (18:29 +0000)
committereletuchy <dev-null@apache.org>
Mon, 25 Jun 2007 18:29:28 +0000 (18:29 +0000)
Reviewed By: mcslee

Test Plan: run as part of aim importer

Revert Plan: sure

Notes:

EImportant:

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665142 13f79535-47bb-0310-9956-ffa450edef68

lib/java/src/transport/THttpClient.java

index aa0f0a3..8b42ba3 100644 (file)
@@ -50,7 +50,16 @@ public class THttpClient extends TTransport {
 
   public void open() {}
 
-  public void close() {}
+  public void close() {
+    if (null != inputStream_) {
+      try {
+        inputStream_.close();
+      } catch (IOException ioe) {
+        ;
+      }
+      inputStream_ = null;
+    }
+  }
 
   public boolean isOpen() {
     return true;