felixge / felixge/node-growing-file

Errors in streamed file

Aperta
#9 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
106
Fork
14
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.