spdy-http2 / node-spdy

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

Long requests can fail to send data, unless DEBUG env var set #384

Open canadaduane opened 3 years ago

canadaduane commented 3 years ago

I've set up a test case here: https://github.com/canadaduane/spdy-braidify-heisenbug

In short: when a long, chunked GET request sends data, it's possible to get in a state where data is no longer sent, even when additional write events occur. I'm having trouble identifying the root cause, but the above test case makes the situation reproducible & should help anyone with internal knowledge of node-spdy.

Strangely, when adding DEBUG=* or more specifically, DEBUG=spdy:stream:server, the problem disappears.