From 89692ff19b9a4ce03a7f4d4e6949fd2a0a2d6fd2 Mon Sep 17 00:00:00 2001 From: Sam Roberts Date: Thu, 19 Mar 2020 21:07:36 -0700 Subject: [PATCH] test: end tls connection with some data In openssl-1.1.1e the client doesn't seem to like having the TLS connection shut down with no data sent, so send an empty string. A number of related issues showed up in the TLS1.3 port, so this is not entirely surprising. PR-URL: https://github.com/nodejs/node/pull/32328 Backport-PR-URL: https://github.com/nodejs/node/pull/32443 Fixes: https://github.com/nodejs/node/issues/32210 Reviewed-By: Sam Roberts Reviewed-By: James M Snell --- test/parallel/test-tls-session-cache.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-tls-session-cache.js b/test/parallel/test-tls-session-cache.js index 55dd92e81d259c..e78c64cbd1fe9e 100644 --- a/test/parallel/test-tls-session-cache.js +++ b/test/parallel/test-tls-session-cache.js @@ -64,7 +64,7 @@ function doTest(testOptions, callback) { throw er; }); ++requestCount; - cleartext.end(); + cleartext.end(''); }); server.on('newSession', function(id, data, cb) { ++newSessionCount;