adamkewley / jobson

A platform for transforming command-line applications into a job service.
Apache License 2.0
256 stars 20 forks source link

Server shouldn't internally throw exception when user cancels a download #27

Closed adamkewley closed 6 years ago

adamkewley commented 6 years ago

This isn't a breaking issue, but puts unnecessary error messages into the server logs.

If a user cancels a download connection midway then the server will throw an exception (probably because it's trying to write file bytes to a closed fd).

adamkewley commented 6 years ago

This also turns out to cause a resource leak, which I also fixed.