Closed AdamMagaluk closed 8 years ago
Also note this issue does not happen when you use req.pipe() instead of req.end(data). I was able to get around the issue in the code i'm by replacing all req.end() with a req.pipe().
Fixed, thanks for reporting!
Recently when updating from node 4.1.1 going to 4.1.2 I've noticed our code that uses node-spdy@1.32.x breaks. I've tracked down the changes in node@4.1.2 to this commit https://github.com/nodejs/node/commit/99943e189d specificly removal of the lines 136-141 in
lib/_http_outgoing.js
.For some reason node-spdy is sending a blank buffer which is causing the crash. In <= node@4.1.1 it would get filtered out by lines 136-141. In latest node zero length data only gets filtered out if a) there's connection with http_message b) the output is length 0. In this case it follows the path to be buffered which does not check the length of the data.
Any thoughts on how to get around this?
Below running the file with node@4.1.1
Running with node@4.1.2