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 <vieuxtech@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
Sam Roberts authored and Beth Griggs committed 2020-03-24 13:22:50 +00:00
1 parent 76033c5495
commit 89692ff19b
1 file changed
+1 -1
+1 -1
View File
@@ -64,7 +64,7 @@ function doTest(testOptions, callback) {
throw er;
});
++requestCount;
cleartext.end();
cleartext.end('');
});
server.on('newSession', function(id, data, cb) {
++newSessionCount;