test: fix tls-multi-key race condition · nodejs/node@e65f1f7 · GitHub
Skip to content

Commit e65f1f7

Browse files
santigimenojasnell
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 ad63d35 commit e65f1f7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions

0 commit comments

Comments
 (0)