Repository navigation
Node 4 breaks making 16kb or greater requests #2821
Description
Activity
- addedhttpIssues and PRs related to the http subsystem.Issues and PRs related to the http subsystem.confirmed-bugIssues and PRs for confirmed bugs.Issues and PRs for confirmed bugs.
on Sep 11, 2015 First bad commit is 1bc4468 (#2355).
cc @indutny @trevnorrisBtw, the description is a bit incorrect:
new Array(1639).join('0123456789')— ok.
new Array(1640).join('0123456789')— fail.
new Array(6644).join('0123456789')— fail.
new Array(6545).join('0123456789')— ok.Strange, I can't get it to actually throw. It just hangs for me. On which OS are we seeing this?
@evanlucas Mine — Arch Linux x86_64, both self-built and official binaries.
There is definitely a bug, confirmed on my mac. The fix is easy, I just want to be sure that all edge cases are covered.
- added a commit that references this issue
on Sep 11, 2015 Fix is here: #2824
It (the original issue, not the fix that was just added) fails on payload lengths exactly from
2^14to2^16 - 1.2^14is the first bad payload size,2^16is the first good payload size after that.After that, 4481602 is the next bad payload size.That gives a request error, not the server crash.- added a commit that references this issue
on Sep 15, 2015 Should be fixed in 7ec0491
- added 2 commits that reference this issue
on Sep 15, 2015 Fixed in 7ec0491, to be released soon.
@Fishrock123 thanks for helping to get this in for 4.0.1!

Related to this PR: #2355
In iojs 3.2.0 the following code works, in iojs 3.3.0 and node 4 the following code throws an error.
Error:
If you change the payload size to just under 16kb it works: