FileBackedOutputStream.asByteSource.getInput returns a FileInputStream
which we do not close.  We later call FileBackedOutputStream.reset
which removes the underlying File.  This fails on Windows which does
not support deleting an open file and leaks resources on other
platforms.  Eagerly close to address this issue.
You can merge this Pull Request by running:

  git pull https://github.com/maginatics/jclouds wire-close-file-input-stream

Or you can view, comment on it, or merge it online at:

  https://github.com/jclouds/jclouds/pull/295

-- Commit Summary --

  * JCLOUDS-473: Close FileInputStream in Wire.copy

-- File Changes --

    M core/src/main/java/org/jclouds/logging/internal/Wire.java (7)

-- Patch Links --

https://github.com/jclouds/jclouds/pull/295.patch
https://github.com/jclouds/jclouds/pull/295.diff

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/295

Reply via email to