Commit 3b94991b authored by Santiago Gimeno's avatar Santiago Gimeno Committed by Fedor Indutny
Browse files

test: fix tls-inception flakiness

When sending a very large buffer (400000 bytes) the test fails due to
the client socket from the `a` server erroring with `ECONNRESET`.
There's a race condition between the closing of this socket and the `ssl`
socket closing on the other side of the connection. To improve things,
destroy the socket as soon as possible: in the `end` event of the `dest`
socket.

PR-URL: https://github.com/nodejs/node/pull/4195


Reviewed-By: default avatarBrian White <mscdex@mscdex.net>
Reviewed-By: default avatarFedor Indutny <fedor@indutny.com>
parent 86a3bd09
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment