spdy-http2 / node-spdy

SPDY server on Node.js
2.81k stars 196 forks source link

Inconsistent partial transfer/browser error on files >64 KiB #400

Open EnderEyeGames opened 11 months ago

EnderEyeGames commented 11 months ago

I run a website that runs on Express and I'd like to add HTTP/2 to it. However, it seems that there's a bug causing an inconsistent transfer of files >64 KiB. Firefox calls it a "partial transfer", and it may transfer one or several 64 KiB fragments of the file (visualizable by loading a large baseline JPEG). Chrome calls it an "HTTP/2 protocol error", implying that node-spdy failed to properly implement the protocol. Any file smaller than 64 KiB loads perfectly fine and shows the expected performance improvement over HTTP/1.1. There is no error in the console when this happens, and both this and the spdy-fixes fork have this issue.

Looks like some others have mentioned a similar issue, but not the fact that it does it in 64 KiB chunks.