http2: do not override the allowHalfOpen option

The constructors of `tls.Server` and `Http2Server` call the super
constructors without options so the `allowHalfOpen` option is never used
regardless of its value.

PR-URL: https://github.com/nodejs/node/pull/27623
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
Luigi Pinca authored and Daniel Bevenius committed 2019-05-13 06:02:20 +02:00
1 parent 639b85950b
commit 3309c856bc
1 file changed
-1
-1
View File
@@ -2641,7 +2641,6 @@ function connectionListener(socket) {
function initializeOptions(options) {
assertIsObject(options, 'options');
options = { ...options };
options.allowHalfOpen = true;
assertIsObject(options.settings, 'options.settings');
options.settings = { ...options.settings };