> -    * Ensures the content is always flushed.
> -    * 
> -    */
> -   static class ConsumeOnCloseInputStream extends FilterInputStream {
> -
> -      protected ConsumeOnCloseInputStream(InputStream in) {
> -         super(in);
> -      }
> -
> -      boolean closed;
> -
> -      @Override
> -      public void close() throws IOException {
> -         if (!closed) {
> -            try {
> -               copy(this, nullOutputStream());

Yes, in some sense.  Really it was the objects store in the finalizer queue, 
but the queue was not processed quickly due to this copy.

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

Reply via email to