diff options
author | ZYSzys <zyszys98@gmail.com> | 2020-01-03 12:50:04 +0300 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2020-01-06 05:16:20 +0300 |
commit | 66310c2b78df24ec79668dc30e4df675c978a9be (patch) | |
tree | f57a77e4ecbbe80e97fba51f5e909305fc81f04e /src/node_http2.cc | |
parent | 75b30c606c9b18fdb2634e8fe5e2ca5e9a889286 (diff) |
http2: set default enableConnectProtocol to 0
PR-URL: https://github.com/nodejs/node/pull/31174
Refs: https://tools.ietf.org/html/rfc8441#section-9.1
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'src/node_http2.cc')
-rw-r--r-- | src/node_http2.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/node_http2.cc b/src/node_http2.cc index a4d1df0ca9f..a56f0ebccf7 100644 --- a/src/node_http2.cc +++ b/src/node_http2.cc @@ -298,13 +298,16 @@ void Http2Session::Http2Settings::RefreshDefaults(Environment* env) { DEFAULT_SETTINGS_MAX_FRAME_SIZE; buffer[IDX_SETTINGS_MAX_HEADER_LIST_SIZE] = DEFAULT_SETTINGS_MAX_HEADER_LIST_SIZE; + buffer[IDX_SETTINGS_ENABLE_CONNECT_PROTOCOL] = + DEFAULT_SETTINGS_ENABLE_CONNECT_PROTOCOL; buffer[IDX_SETTINGS_COUNT] = (1 << IDX_SETTINGS_HEADER_TABLE_SIZE) | (1 << IDX_SETTINGS_ENABLE_PUSH) | (1 << IDX_SETTINGS_MAX_CONCURRENT_STREAMS) | (1 << IDX_SETTINGS_INITIAL_WINDOW_SIZE) | (1 << IDX_SETTINGS_MAX_FRAME_SIZE) | - (1 << IDX_SETTINGS_MAX_HEADER_LIST_SIZE); + (1 << IDX_SETTINGS_MAX_HEADER_LIST_SIZE) | + (1 << IDX_SETTINGS_ENABLE_CONNECT_PROTOCOL); } @@ -3157,6 +3160,8 @@ void Initialize(Local<Object> target, NODE_DEFINE_CONSTANT(constants, DEFAULT_SETTINGS_MAX_CONCURRENT_STREAMS); NODE_DEFINE_CONSTANT(constants, DEFAULT_SETTINGS_INITIAL_WINDOW_SIZE); NODE_DEFINE_CONSTANT(constants, DEFAULT_SETTINGS_MAX_FRAME_SIZE); + NODE_DEFINE_CONSTANT(constants, DEFAULT_SETTINGS_MAX_HEADER_LIST_SIZE); + NODE_DEFINE_CONSTANT(constants, DEFAULT_SETTINGS_ENABLE_CONNECT_PROTOCOL); NODE_DEFINE_CONSTANT(constants, MAX_MAX_FRAME_SIZE); NODE_DEFINE_CONSTANT(constants, MIN_MAX_FRAME_SIZE); NODE_DEFINE_CONSTANT(constants, MAX_INITIAL_WINDOW_SIZE); |