Fixing an issue with InputStream that represents response body not getting closed #7

Closed
wants to merge 1 commit into
from

2 participants

@mtopolnik

When the response body is an InputStream that gets copied to the response's OutputStream, if the OutputStream gets broken (e.g., the client interrupts the transfer), the InputStream will not get closed and the resources associated with it will not get released. Fixed by including the InputStream in with-open.

@weavejester
Collaborator

Tested and committed - thanks for the patch!

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment