LunaNode/lunacdn

Handle errors in retrieving blocks

Closed this issue · 1 comments

Currently, if we fail to retrieve a block, then Serve will assume that the file download has finished and will cleanly close the connection. We should handle this better, perhaps by comparing against file length.

Content-Length is set so client knows that the download is incomplete, but it would be good to print warning in Serve too.