Uh oh!
There was an error while loading. Please reload this page.
test: fix http-upgrade-agent flakiness - #4520
Conversation
Trott
commented
Jan 3, 2016
This PR only has a change to the test. Is this sentence in error or is there a missing modified file that needs to be added? |
8b6e674 to
c595680Comparesantigimeno
commented
Jan 7, 2016
Yes, that sentence was wrong. I rewrote the commit message. PTAL |
Trott
commented
Jan 8, 2016
The changes to the upgrade event handler looks good to me. I don't think we need the |
c595680 to
8ac8915Comparesantigimeno
commented
Jan 8, 2016
@Trott PR updated with your comments. Thanks |
Trott
commented
Jan 9, 2016
LGTM if CI is happy. CI: https://ci.nodejs.org/job/node-test-commit/1664/ We need to get you onboarded so you can start these CI jobs yourself! Minor nit that can be ignored if you want: I don't think we need the |
Trott
commented
Jan 9, 2016
One other comment that you can ignore if you want: The same issue you're fixing here seems to afflict |
8ac8915 to
d710d9cComparesantigimeno
commented
Jan 9, 2016
@Trott I've removed the |
Trott
commented
Jan 9, 2016
Looks like the modified test fails (or is flaky?) on FreeBSD and Raspberry Pi: |
santigimeno
commented
Jan 9, 2016
@Trott It seems the CI was started with the previous version of the PR: 8ac8915 (the one with |
santigimeno
commented
Jan 9, 2016
Nah, increasing the timeout won't work either as the client is closing the connection when it receives the upgrade request. I think I'm removing the test altogether as it may happen that the second write could fail due to a race condition with the client closing the connection. |
d710d9c to
2368c95Comparesantigimeno
commented
Jan 9, 2016
PR updated. I think this should work |
Trott
commented
Jan 10, 2016
One nit, but LGTM if CI doesn't uncover anything. |
There was a problem hiding this comment.
Nit: As mscdex noted in the other PR that's similar to this, this callback might benefit from being wrapped in common.mustCall() to guarantee that it fires.
It's not guaranteed that the socket data is received in the same chunk as the upgrade response. Listen for the `data` event to make sure all the data is received.
2368c95 to
6e84ddaComparesantigimeno
commented
Jan 11, 2016
PR updated. Thanks |
Trott
commented
Jan 11, 2016
jasnell
commented
Jan 12, 2016
LGTM |
It's not guaranteed that the socket data is received in the same chunk as the upgrade response. Listen for the `data` event to make sure all the data is received. PR-URL: #4520 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
jasnell
commented
Jan 12, 2016
Landed in 6018fa1 |
It's not guaranteed that the socket data is received in the same chunk as the upgrade response. Listen for the `data` event to make sure all the data is received. PR-URL: #4520 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
It's not guaranteed that the socket data is received in the same chunk as the upgrade response. Listen for the `data` event to make sure all the data is received. PR-URL: #4520 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
It's not guaranteed that the socket data is received in the same chunk as the upgrade response. Listen for the `data` event to make sure all the data is received. PR-URL: #4520 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
It's not guaranteed that the socket data is received in the same chunk as the upgrade response. Listen for the `data` event to make sure all the data is received. PR-URL: nodejs#4520 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
It's not guaranteed that the socket data is received in the same chunk as the upgrade response. Listen for the `data` event to make sure all the data is received. PR-URL: nodejs#4520 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
It's not guaranteed that the socket data is received in the same chunk as the upgrade response. Listen for the `data` event to make sure all the data is received. PR-URL: nodejs#4520 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
It's not guaranteed that the socket data is received in the same chunk
as the upgrade response. Listen for the
dataevent to make sure allthe data is received. Modify the test so it does not pass without
applying this change.
I was getting this error from time to time on
OS X: