Skip to content

Conversation

@santigimeno
Copy link
Member

It can happen that the server-side socket is destroyed before the
client-side socket has gracefully closed, thus causing a 'ECONNRESET'
error in this socket. To solve this, also close gracefully in the server
side too.

It tries to solve the following error I'm getting from time to time in a Debian Jessie 64 box:

=== release test-tls-zero-clear-in === Path: parallel/test-tls-zero-clear-in{Error: read ECONNRESET at exports._errnoException (util.js:859:11) at TLSWrap.onread (net.js:544:26) code: 'ECONNRESET', errno: 'ECONNRESET', syscall: 'read' } assert.js:89 throw new assert.AssertionError({^ AssertionError: false == true at process.<anonymous> (/home/sgimeno/node/node/test/parallel/test-tls-zero-clear-in.js:51:10) at emitOne (events.js:96:20) at process.emit (events.js:183:7) Command: out/Release/node /home/sgimeno/node/node/test/parallel/test-tls-zero-clear-in.js 

It can happen that the server-side socket is destroyed before the client-side socket has gracefully closed, thus causing a 'ECONNRESET' error in this socket. To solve this, also close gracefully in the server side too.
@mscdexmscdex added tls Issues and PRs related to the tls subsystem. test Issues and PRs related to the tests. labels Jan 27, 2016
@Trott
Copy link
Member

I know it's a small change, but it is TLS, so: /cc @nodejs/crypto

@indutny
Copy link
Member

LGTM if CI is green.

@bnoordhuis
Copy link
Member

LGTM as well. I wanted to start the CI but it's timing out for me...

@jasnell
Copy link
Member

LGTM if CI is green

@Trott
Copy link
Member

@Trott
Copy link
Member

Known flaky unrelated test failure in CI. In other words, looks good.

@Trott
Copy link
Member

Trott pushed a commit to Trott/io.js that referenced this pull request Jan 28, 2016
It can happen that the server-side socket is destroyed before the client-side socket has gracefully closed, thus causing a 'ECONNRESET' error in this socket. To solve this, also close gracefully in the server side too. PR-URL: nodejs#4888 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Fedor Indutny <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]>
@Trott
Copy link
Member

Landed in 795eeb1

@TrottTrott closed this Jan 28, 2016
rvagg pushed a commit that referenced this pull request Jan 28, 2016
It can happen that the server-side socket is destroyed before the client-side socket has gracefully closed, thus causing a 'ECONNRESET' error in this socket. To solve this, also close gracefully in the server side too. PR-URL: #4888 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Fedor Indutny <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]>
rvagg pushed a commit that referenced this pull request Feb 8, 2016
It can happen that the server-side socket is destroyed before the client-side socket has gracefully closed, thus causing a 'ECONNRESET' error in this socket. To solve this, also close gracefully in the server side too. PR-URL: #4888 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Fedor Indutny <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]>
MylesBorins pushed a commit that referenced this pull request Feb 17, 2016
It can happen that the server-side socket is destroyed before the client-side socket has gracefully closed, thus causing a 'ECONNRESET' error in this socket. To solve this, also close gracefully in the server side too. PR-URL: #4888 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Fedor Indutny <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]>
MylesBorins pushed a commit that referenced this pull request Feb 18, 2016
It can happen that the server-side socket is destroyed before the client-side socket has gracefully closed, thus causing a 'ECONNRESET' error in this socket. To solve this, also close gracefully in the server side too. PR-URL: #4888 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Fedor Indutny <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]>
@MylesBorinsMylesBorins mentioned this pull request Feb 18, 2016
MylesBorins pushed a commit that referenced this pull request Mar 2, 2016
It can happen that the server-side socket is destroyed before the client-side socket has gracefully closed, thus causing a 'ECONNRESET' error in this socket. To solve this, also close gracefully in the server side too. PR-URL: #4888 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Fedor Indutny <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]>
scovetta pushed a commit to scovetta/node that referenced this pull request Apr 2, 2016
It can happen that the server-side socket is destroyed before the client-side socket has gracefully closed, thus causing a 'ECONNRESET' error in this socket. To solve this, also close gracefully in the server side too. PR-URL: nodejs#4888 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Fedor Indutny <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

7 participants

@santigimeno@Trott@indutny@bnoordhuis@jasnell@mscdex@MylesBorins