summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLuigi Pinca <luigipinca@gmail.com>2019-05-20 14:59:20 +0200
committerDaniel Bevenius <daniel.bevenius@gmail.com>2019-05-23 05:35:19 +0200
commit165916b1f3ec094b1694bd5a056c2fc5e56027c2 (patch)
tree416cca009bcc9ff7573a19ecd27b0bafa367030e /lib
parentd2cabee64c60a7d6e2023dfb60c26cb66dc2eaa4 (diff)
downloadandroid-node-v8-165916b1f3ec094b1694bd5a056c2fc5e56027c2.tar.gz
android-node-v8-165916b1f3ec094b1694bd5a056c2fc5e56027c2.tar.bz2
android-node-v8-165916b1f3ec094b1694bd5a056c2fc5e56027c2.zip
http2: support net.Server options
Make `http2.createServer()` support `net.Server` options. PR-URL: https://github.com/nodejs/node/pull/27782 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/internal/http2/core.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/internal/http2/core.js b/lib/internal/http2/core.js
index bd8639a6ea..e23be01fa4 100644
--- a/lib/internal/http2/core.js
+++ b/lib/internal/http2/core.js
@@ -2697,8 +2697,9 @@ class Http2SecureServer extends TLSServer {
class Http2Server extends NETServer {
constructor(options, requestListener) {
- super(connectionListener);
- this[kOptions] = initializeOptions(options);
+ options = initializeOptions(options);
+ super(options, connectionListener);
+ this[kOptions] = options;
this.timeout = 0;
this.on('newListener', setupCompat);
if (typeof requestListener === 'function')