Skip to content

Commit

Permalink
Merge pull request Unidata#1 from tkunicki-usgs/v4.3.11-CIDA
Browse files Browse the repository at this point in the history
removed calls to abort() with commons httpclient HTTPMethodBase instances
  • Loading branch information
tkunicki committed Jul 26, 2012
2 parents 028df03 + b5663f4 commit 954988f
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions cdm/src/main/java/ucar/nc2/util/net/HTTPMethod.java
Original file line number Diff line number Diff line change
Expand Up @@ -295,9 +295,12 @@ public void close()
}
if (executed) {
consumeContent();
} else if(method != null)
method.abort();
if(method != null) method.releaseConnection();
} else if(method != null) {
// method.abort();
}
if(method != null) {
method.releaseConnection();
}
closed = true;
session.removeMethod(this);
}
Expand All @@ -307,7 +310,7 @@ public void consumeContent()
//try {
//InputStream st = method.getResponseBodyAsStream();
//while((st.skip(10000) >= 0));
method.abort();
// method.abort();
//} catch (IOException e) {}
}

Expand Down

0 comments on commit 954988f

Please sign in to comment.