Code Review
/
common
/
thrift.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
0e1100c
)
[thrift] java httpclient needs to close its inputstream
author
eletuchy
<dev-null@apache.org>
Mon, 25 Jun 2007 18:29:28 +0000
(18:29 +0000)
committer
eletuchy
<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
patch
|
blob
|
history
diff --git
a/lib/java/src/transport/THttpClient.java
b/lib/java/src/transport/THttpClient.java
index
aa0f0a3
..
8b42ba3
100644
(file)
--- a/
lib/java/src/transport/THttpClient.java
+++ b/
lib/java/src/transport/THttpClient.java
@@
-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;