Open rnapier opened 9 years ago
Thanks for the bug report. I've already got some suspicions about what is causing this. I'll push a fix once I've confirmed it.
I've found another related issue, with a complicated fix.
The connection-level flow control added in SPDY/3.1 doesn't work properly. If a connection becomes constrained but then receives a WINDOW_UPDATE frame which relieves the constraint, buffered frames are not sent immediately, but will be sent when the next frame is chosen.
The ideal fix for this would introduce several nasty race conditions, so it may take some time to provide a better fix.
If the size of the data sent by an HTTP Handler is within 15 bytes of the window size, then the data will be sent, but no FIN, which will cause the client to hang.
If the size of the data sent by an HTTP Handler is greater than the window size, then no data will be sent.
client.go
server.go