mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
http2: expose nghttp2_option_set_stream_reset_rate_limit as an option
PR-URL: https://github.com/nodejs/node/pull/54875 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com>
This commit is contained in:
1 parent
781ffd8ba1
commit
914db60159
5 files changed
+39
-2
No files matched your search
@@ -23,7 +23,9 @@ const IDX_OPTIONS_MAX_OUTSTANDING_PINGS = 6;
|
||||
const IDX_OPTIONS_MAX_OUTSTANDING_SETTINGS = 7;
|
||||
const IDX_OPTIONS_MAX_SESSION_MEMORY = 8;
|
||||
const IDX_OPTIONS_MAX_SETTINGS = 9;
|
||||
const IDX_OPTIONS_FLAGS = 10;
|
||||
const IDX_OPTIONS_STREAM_RESET_RATE = 10;
|
||||
const IDX_OPTIONS_STREAM_RESET_BURST = 11;
|
||||
const IDX_OPTIONS_FLAGS = 12;
|
||||
|
||||
{
|
||||
updateOptionsBuffer({
|
||||
@@ -37,6 +39,8 @@ const IDX_OPTIONS_FLAGS = 10;
|
||||
maxOutstandingSettings: 8,
|
||||
maxSessionMemory: 9,
|
||||
maxSettings: 10,
|
||||
streamResetRate: 11,
|
||||
streamResetBurst: 12,
|
||||
});
|
||||
|
||||
strictEqual(optionsBuffer[IDX_OPTIONS_MAX_DEFLATE_DYNAMIC_TABLE_SIZE], 1);
|
||||
@@ -49,6 +53,8 @@ const IDX_OPTIONS_FLAGS = 10;
|
||||
strictEqual(optionsBuffer[IDX_OPTIONS_MAX_OUTSTANDING_SETTINGS], 8);
|
||||
strictEqual(optionsBuffer[IDX_OPTIONS_MAX_SESSION_MEMORY], 9);
|
||||
strictEqual(optionsBuffer[IDX_OPTIONS_MAX_SETTINGS], 10);
|
||||
strictEqual(optionsBuffer[IDX_OPTIONS_STREAM_RESET_RATE], 11);
|
||||
strictEqual(optionsBuffer[IDX_OPTIONS_STREAM_RESET_BURST], 12);
|
||||
|
||||
const flags = optionsBuffer[IDX_OPTIONS_FLAGS];
|
||||
|
||||
@@ -61,6 +67,8 @@ const IDX_OPTIONS_FLAGS = 10;
|
||||
ok(flags & (1 << IDX_OPTIONS_MAX_OUTSTANDING_PINGS));
|
||||
ok(flags & (1 << IDX_OPTIONS_MAX_OUTSTANDING_SETTINGS));
|
||||
ok(flags & (1 << IDX_OPTIONS_MAX_SETTINGS));
|
||||
ok(flags & (1 << IDX_OPTIONS_STREAM_RESET_RATE));
|
||||
ok(flags & (1 << IDX_OPTIONS_STREAM_RESET_BURST));
|
||||
}
|
||||
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user