File tree 2 files changed +15
-1
lines changed
2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -518,6 +518,7 @@ function onSettings() {
518
518
return ;
519
519
session [ kUpdateTimer ] ( ) ;
520
520
debugSessionObj ( session , 'new settings received' ) ;
521
+ session [ kRemoteSettings ] = undefined ;
521
522
session . emit ( 'remoteSettings' , session . remoteSettings ) ;
522
523
}
523
524
Original file line number Diff line number Diff line change @@ -38,6 +38,12 @@ server.on(
38
38
} )
39
39
) ;
40
40
41
+ server . on ( 'session' , ( session ) => {
42
+ session . settings ( {
43
+ maxConcurrentStreams : 2
44
+ } ) ;
45
+ } ) ;
46
+
41
47
server . listen (
42
48
0 ,
43
49
common . mustCall ( ( ) => {
@@ -57,11 +63,18 @@ server.listen(
57
63
assert . strictEqual ( settings . maxFrameSize , 16384 ) ;
58
64
} , 2 )
59
65
) ;
66
+
67
+ let calledOnce = false ;
60
68
client . on (
61
69
'remoteSettings' ,
62
70
common . mustCall ( ( settings ) => {
63
71
assert ( settings ) ;
64
- } )
72
+ assert . strictEqual (
73
+ settings . maxConcurrentStreams ,
74
+ calledOnce ? 2 : ( 2 ** 32 ) - 1
75
+ ) ;
76
+ calledOnce = true ;
77
+ } , 2 )
65
78
) ;
66
79
67
80
const headers = { ':path' : '/' } ;
You can’t perform that action at this time.
0 commit comments