Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f213406

Browse filesBrowse files
santigimenoMyles Borins
authored andcommitted
test: fix tls-multi-key race condition
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, also close gracefully in the client side. PR-URL: #3966 Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 2e92a1a commit f213406
Copy full SHA for f213406

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Collapse file

‎test/parallel/test-tls-multi-key.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-tls-multi-key.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ var server = tls.createServer(options, function(conn) {
3535
rejectUnauthorized: false
3636
}, function() {
3737
ciphers.push(rsa.getCipher());
38-
ecdsa.destroy();
39-
rsa.destroy();
38+
ecdsa.end();
39+
rsa.end();
4040
server.close();
4141
});
4242
});

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.