felixge / felixge/node-growing-file
Errors in streamed file
- 主要言語
- JavaScript
- スター
- 106
- フォーク
- 14
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Hi, this is probably kind of a strange use case, but the issue is the following:
I download a file and start saving it to disk, e.g. a 100MB text file.
I open the file using node-growing-file while downloading.
I pipe the read stream into a server response or another file.
At the end, I should have the file on the disk and served to the requesting server response. All files should be the same. In fact, they are not. in 80% of the cases.
The downloaded file always has the correct checksum, but the data served via node-growing-file is really often messed up. I tried this with a text file really often and sometimes there is one part of the text missing in a line and inserted into some line later.
It does not matter if I server the data into a server response or another local file. The result is the same, files turn out to be different.
Do you have any idea how this is possible? It seems to have to do with the internal offset of GrowingFile, but I can't think of a possible improvement.
Would really appreciate any help!
Thanks
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
評価
この issue はまだ評価されていません。