@@ -7,6 +7,7 @@ const assert = require('assert');
7
7
const http2 = require ( 'http2' ) ;
8
8
9
9
const check = Buffer . from ( [ 0x00 , 0x01 , 0x00 , 0x00 , 0x10 , 0x00 ,
10
+ 0x00 , 0x03 , 0xff , 0xff , 0xff , 0xff ,
10
11
0x00 , 0x05 , 0x00 , 0x00 , 0x40 , 0x00 ,
11
12
0x00 , 0x04 , 0x00 , 0x00 , 0xff , 0xff ,
12
13
0x00 , 0x06 , 0x00 , 0x00 , 0xff , 0xff ,
@@ -41,7 +42,7 @@ http2.getPackedSettings({ enablePush: false });
41
42
[ 'maxFrameSize' , 16383 ] ,
42
43
[ 'maxFrameSize' , 2 ** 24 ] ,
43
44
[ 'maxConcurrentStreams' , - 1 ] ,
44
- [ 'maxConcurrentStreams' , 2 ** 31 ] ,
45
+ [ 'maxConcurrentStreams' , 2 ** 32 ] ,
45
46
[ 'maxHeaderListSize' , - 1 ] ,
46
47
[ 'maxHeaderListSize' , 2 ** 32 ]
47
48
] . forEach ( ( i ) => {
@@ -168,16 +169,3 @@ http2.getPackedSettings({ enablePush: false });
168
169
message : 'Invalid value for setting "maxFrameSize": 16777216'
169
170
} ) ;
170
171
}
171
-
172
- // Check for maxConcurrentStreams failing the max number.
173
- {
174
- const packed = Buffer . from ( [ 0x00 , 0x03 , 0xFF , 0xFF , 0xFF , 0xFF ] ) ;
175
-
176
- common . expectsError ( ( ) => {
177
- http2 . getUnpackedSettings ( packed , { validate : true } ) ;
178
- } , {
179
- code : 'ERR_HTTP2_INVALID_SETTING_VALUE' ,
180
- type : RangeError ,
181
- message : 'Invalid value for setting "maxConcurrentStreams": 4294967295'
182
- } ) ;
183
- }
0 commit comments