Files
node/test/parallel
Luigi Pinca 8c4bd2af4f test: deflake test-tls-js-stream
`socket.destroy()` can destory the stream before the chunk to write
with `socket.end()` is actually sent. Furthermore `socket.destroy()`
destroys `p` and not the actual raw socket. As a result it is possible
that the connection is left open.

Remove `socket.destroy()` to ensure that the chunk is sent. Also use
`common.mustCall()` to ensure that the `'secureConnection'` and
`'secureConnect'` events are emitted exactly once.

PR-URL: https://github.com/nodejs/node/pull/27478
Fixes: https://github.com/nodejs/node/issues/26938
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com>
2019-05-06 17:19:13 +02:00
..
2019-03-23 02:55:54 +01:00
2018-12-10 17:07:18 +01:00
2019-03-23 02:55:54 +01:00
2019-03-23 02:55:54 +01:00
2019-04-16 03:37:03 +02:00
2019-04-11 05:40:59 +02:00
2019-03-23 02:55:54 +01:00
2019-03-23 02:55:54 +01:00
2019-03-23 02:55:54 +01:00
2019-03-23 02:55:54 +01:00
2019-03-23 02:55:54 +01:00
2019-03-23 02:55:54 +01:00
2019-03-23 02:55:54 +01:00
2019-03-23 02:55:54 +01:00
2019-03-23 02:55:54 +01:00
2019-03-23 02:55:54 +01:00
2019-03-23 02:55:54 +01:00
2019-03-23 02:55:54 +01:00
2018-12-10 17:07:18 +01:00
2019-04-16 03:37:03 +02:00
2019-02-28 05:20:51 +01:00
2019-04-16 03:37:03 +02:00
2019-05-02 23:22:38 +02:00
2019-03-20 07:48:25 -07:00
2019-03-20 07:48:25 -07:00
2019-03-20 07:48:25 -07:00
2019-03-20 07:48:25 -07:00
2019-03-20 07:48:25 -07:00
2019-03-20 07:48:25 -07:00
2019-03-20 07:48:25 -07:00
2019-03-20 07:48:25 -07:00
2019-01-10 09:00:22 -05:00
2019-01-08 12:57:24 -06:00
2019-03-14 18:51:20 +01:00
2019-01-05 21:36:47 +01:00