logoalt Hacker News

ornornoryesterday at 8:09 PM2 repliesview on HN

> cannot detect premature EOF during the file transfer. It keeps the incomplete file in the cache where the sha hash fails until you wipe your entire cache.

I wonder what circumstances led to saying “this is okay we’ll ship it like that”


Replies

hinkleyyesterday at 8:30 PM

I think we can blame the IO streaming API in NodeJS on this. It’s a callback and you just know you got another block. My guess is chunked mode and not checking whether the bytes expected and the bytes received matched.

Not to diminish the facepalm but the blame can be at least partially shared.

Our UI lead was getting the worst of this during Covid. I set up an nginx forward proxy mostly for him to tone this down a notch (fixed a separate issue but helped here a bit as well) so he could get work done on his shitty ISP.

cyanydeezyesterday at 8:30 PM

Ignorance. Most programmers in open source operate on the "works on my machine"