> - * 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());
@tdmanv: This is the `copy` that was causing the OOMEs? --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds/pull/243/files#r8645252