> @@ -100,7 +100,7 @@ protected HttpResponse invoke(HttpURLConnection 
> connection) throws IOException,
>        HttpResponse.Builder<?> builder = HttpResponse.builder();
>        InputStream in = null;
>        try {
> -         in = consumeOnClose(connection.getInputStream());
> +         in = connection.getInputStream();

Based on the (lack of) discussion in #243, no one knows why jclouds includes 
this curious functionality.  Looking at the git logs did not reveal a 
justification for it.  My best guess is that consuming the entire stream is 
necessary to reuse a HTTP connection, possibly working around some other broken 
code.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/435/files#r14687065

Reply via email to