Skip to content

test: fix tls-no-rsa-key flakiness - #4043

Closed
santigimeno wants to merge 1 commit into
nodejs:masterfrom
santigimeno:fix-test-tls-no-rsa-key
Closed

test: fix tls-no-rsa-key flakiness#4043
santigimeno wants to merge 1 commit into
nodejs:masterfrom
santigimeno:fix-test-tls-no-rsa-key

Conversation

@santigimeno

Copy link
Copy Markdown
Member

In some conditions it can happen that the client-side socket is destroyed
before the server-side socket has gracefully closed, thus causing a
'ECONNRESET' error in this socket. To solve this, wait in the client-side
socket for the 'end' event before closing it.

It tries to fix this error I've received several times in OS X:

=== release test-tls-no-rsa-key === Path: parallel/test-tls-no-rsa-key
events.js:142
throw er; // Unhandled 'error' event
^
Error: read ECONNRESET
at exports._errnoException (util.js:873:11)
at TLSWrap.onread (net.js:545:26)

It's the same fix as in #3966

@mscdexmscdex added tls Issues and PRs related to the tls subsystem. test Issues and PRs related to the tests. macos Issues and PRs related to the macOS platform / OSX. labels Nov 26, 2015
Comment threadtest/parallel/test-tls-no-rsa-key.js Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you wrap the callback in common.mustCall(...)? LGTM apart from that.

In some conditions it can happen that the client-side socket is destroyed
before the server-side socket has gracefully closed, thus causing a
'ECONNRESET' error in this socket. To solve this, wait in the client-side
socket for the 'end' event before closing it.
@santigimeno
santigimenoforce-pushed the fix-test-tls-no-rsa-key branch from b977d8f to e782a65CompareDecember 2, 2015 11:32
@santigimeno

Copy link
Copy Markdown
MemberAuthor

PR updated with `common.mustCall'. Thanks

@bnoordhuis

Copy link
Copy Markdown
Member

@santigimeno

Copy link
Copy Markdown
MemberAuthor

ping :)

@jasnell

Copy link
Copy Markdown
Member

whoops! sorry @santigimeno looks like this one slipped through. New CI run just to make sure nothing changed since last time: https://ci.nodejs.org/job/node-test-pull-request/1507/

jasnell pushed a commit that referenced this pull request Feb 2, 2016
In some conditions it can happen that the client-side socket is destroyed
before the server-side socket has gracefully closed, thus causing a
'ECONNRESET' error in this socket. To solve this, wait in the client-side
socket for the 'end' event before closing it.
PR-URL: #4043
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
@jasnell

Copy link
Copy Markdown
Member

Landed in 61fe86b

@jasnelljasnell closed this Feb 2, 2016
@jasnell

Copy link
Copy Markdown
Member

oh, LGTM :-)

@santigimeno

Copy link
Copy Markdown
MemberAuthor

Thanks!

MylesBorins pushed a commit that referenced this pull request Feb 5, 2016
In some conditions it can happen that the client-side socket is destroyed
before the server-side socket has gracefully closed, thus causing a
'ECONNRESET' error in this socket. To solve this, wait in the client-side
socket for the 'end' event before closing it.
PR-URL: #4043
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
rvagg pushed a commit that referenced this pull request Feb 8, 2016
In some conditions it can happen that the client-side socket is destroyed
before the server-side socket has gracefully closed, thus causing a
'ECONNRESET' error in this socket. To solve this, wait in the client-side
socket for the 'end' event before closing it.
PR-URL: #4043
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
MylesBorins pushed a commit that referenced this pull request Feb 11, 2016
In some conditions it can happen that the client-side socket is destroyed
before the server-side socket has gracefully closed, thus causing a
'ECONNRESET' error in this socket. To solve this, wait in the client-side
socket for the 'end' event before closing it.
PR-URL: #4043
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
MylesBorins pushed a commit to MylesBorins/node that referenced this pull request Feb 11, 2016
In some conditions it can happen that the client-side socket is destroyed
before the server-side socket has gracefully closed, thus causing a
'ECONNRESET' error in this socket. To solve this, wait in the client-side
socket for the 'end' event before closing it.
PR-URL: nodejs#4043
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
@MylesBorinsMylesBorins mentioned this pull request Feb 11, 2016
MylesBorins pushed a commit to MylesBorins/node that referenced this pull request Feb 13, 2016
In some conditions it can happen that the client-side socket is destroyed
before the server-side socket has gracefully closed, thus causing a
'ECONNRESET' error in this socket. To solve this, wait in the client-side
socket for the 'end' event before closing it.
PR-URL: nodejs#4043
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
MylesBorins pushed a commit to MylesBorins/node that referenced this pull request Feb 15, 2016
In some conditions it can happen that the client-side socket is destroyed
before the server-side socket has gracefully closed, thus causing a
'ECONNRESET' error in this socket. To solve this, wait in the client-side
socket for the 'end' event before closing it.
PR-URL: nodejs#4043
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
scovetta pushed a commit to scovetta/node that referenced this pull request Apr 2, 2016
In some conditions it can happen that the client-side socket is destroyed
before the server-side socket has gracefully closed, thus causing a
'ECONNRESET' error in this socket. To solve this, wait in the client-side
socket for the 'end' event before closing it.
PR-URL: nodejs#4043
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

macosIssues and PRs related to the macOS platform / OSX.testIssues and PRs related to the tests.tlsIssues and PRs related to the tls subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@santigimeno@bnoordhuis@jasnell@mscdex@MylesBorins