stream: use callback to properly propagate error#29179
stream: use callback to properly propagate error#29179ronag wants to merge 1 commit intonodejs:masterfrom
Conversation
0068306 to
d9fc519
Compare
d9fc519 to
7018652
Compare
|
@nodejs/streams |
|
Can you add a unit test for this? |
Trott
left a comment
There was a problem hiding this comment.
This appears to break parallel/test-tls-hello-parser-failure on macOS, SmartOS, and possibly others.
|
Here's the test failing on FreeBSD. It also failed on macOS and SmartOS. Might be failing elsewhere too, as CI is still running.... AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
false !== true
at Socket.<anonymous> (/usr/home/iojs/build/workspace/node-test-commit-freebsd/nodes/freebsd11-x64/test/parallel/test-tls-hello-parser-failure.js:64:12)
at Socket.<anonymous> (/usr/home/iojs/build/workspace/node-test-commit-freebsd/nodes/freebsd11-x64/test/common/index.js:371:15)
at Socket.emit (events.js:209:13)
at TCP.<anonymous> (net.js:588:12) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: false,
expected: true,
operator: 'strictEqual'
} |
|
@mcollina: This is a bit over my head in terms of unit tests... I think the observed behaviour will be the same. It's just more "correct" in terms of flow. |
|
@Trott: tests pass now, this needed a little extra fiddling to follow the "proper" stream logic. In particular we need the socket to be automatically destroyed on error. This also means that the tests can't expect the socket to continue to function once an error has been caused. I had to split one of those test into two separate files. This probably needs a semver-major... |
20fac88 to
bef7095
Compare
c8e66f6 to
ef9e30f
Compare
|
rebased |
7a9f01e to
6c9b39b
Compare
|
@Trott: Can I get a second opinion on the CI failures on Windows. They seem legit don't they? |
|
Anyone on Windows that might be able to help out debugging the Windows timeouts? |
They do seem legit. After we get the security release out and the CI comes out of embargo, we can try a full rebuild to make sure. |
|
This needs help with sorting out Windows failures. |
|
This is blocked by #31806 in order to sort out Windows failures |
6c9b39b to
a89f557
Compare
This comment has been minimized.
This comment has been minimized.
a89f557 to
945c44b
Compare
The stream will be destroyed upstream through the proper error flow.
945c44b to
6b86519
Compare
|
Landed in 8f86986 |
The stream will be destroyed upstream through the proper error flow.
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes