Closed osolliec closed 6 years ago
Ok, it had nothing to do with finatra, but the reference of the inputstream provider was garbage collected, and the InputStream was thus empty. Hopefully this issue will help the poor souls who want to download files with finatra.
I am trying to download a file from a Finatra server, the file stops downloading but the size is incorrect.
Expected behavior
The file should actually be downloaded wholly. Its size is 443MB.
Actual behavior
Using a Java InputStream, the file will download, chunk by chunk, but will stop randomly at less than 100MB.
Steps to reproduce the behavior
Using Scala version "2.12.4" finatra-http version "17.11.0"
See the following code :