@@ -12,9 +12,9 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Core.Tests
12
12
public class Http2KeepAliveTests : Http2TestBase
13
13
{
14
14
[ Fact ]
15
- public async Task KeepAlivePingInterval_InfiniteTimeSpan_KeepAliveNotEnabled ( )
15
+ public async Task KeepAlivePingDelay_InfiniteTimeSpan_KeepAliveNotEnabled ( )
16
16
{
17
- _serviceContext . ServerOptions . Limits . Http2 . KeepAlivePingInterval = Timeout . InfiniteTimeSpan ;
17
+ _serviceContext . ServerOptions . Limits . Http2 . KeepAlivePingDelay = Timeout . InfiniteTimeSpan ;
18
18
19
19
await InitializeConnectionAsync ( _noopApplication ) . DefaultTimeout ( ) ;
20
20
@@ -26,7 +26,7 @@ public async Task KeepAlivePingInterval_InfiniteTimeSpan_KeepAliveNotEnabled()
26
26
[ Fact ]
27
27
public async Task KeepAlivePingTimeout_InfiniteTimeSpan_NoGoAway ( )
28
28
{
29
- _serviceContext . ServerOptions . Limits . Http2 . KeepAlivePingInterval = TimeSpan . FromSeconds ( 1 ) ;
29
+ _serviceContext . ServerOptions . Limits . Http2 . KeepAlivePingDelay = TimeSpan . FromSeconds ( 1 ) ;
30
30
_serviceContext . ServerOptions . Limits . Http2 . KeepAlivePingTimeout = Timeout . InfiniteTimeSpan ;
31
31
32
32
await InitializeConnectionAsync ( _noopApplication ) . DefaultTimeout ( ) ;
@@ -57,7 +57,7 @@ await ExpectAsync(Http2FrameType.PING,
57
57
[ Fact ]
58
58
public async Task IntervalExceeded_WithoutActivity_PingSent ( )
59
59
{
60
- _serviceContext . ServerOptions . Limits . Http2 . KeepAlivePingInterval = TimeSpan . FromSeconds ( 1 ) ;
60
+ _serviceContext . ServerOptions . Limits . Http2 . KeepAlivePingDelay = TimeSpan . FromSeconds ( 1 ) ;
61
61
62
62
await InitializeConnectionAsync ( _noopApplication ) . DefaultTimeout ( ) ;
63
63
@@ -80,7 +80,7 @@ await ExpectAsync(Http2FrameType.PING,
80
80
[ Fact ]
81
81
public async Task IntervalExceeded_WithActivity_NoPingSent ( )
82
82
{
83
- _serviceContext . ServerOptions . Limits . Http2 . KeepAlivePingInterval = TimeSpan . FromSeconds ( 1 ) ;
83
+ _serviceContext . ServerOptions . Limits . Http2 . KeepAlivePingDelay = TimeSpan . FromSeconds ( 1 ) ;
84
84
85
85
await InitializeConnectionAsync ( _noopApplication ) . DefaultTimeout ( ) ;
86
86
@@ -104,7 +104,7 @@ await ExpectAsync(Http2FrameType.PING,
104
104
[ Fact ]
105
105
public async Task IntervalNotExceeded_NoPingSent ( )
106
106
{
107
- _serviceContext . ServerOptions . Limits . Http2 . KeepAlivePingInterval = TimeSpan . FromSeconds ( 5 ) ;
107
+ _serviceContext . ServerOptions . Limits . Http2 . KeepAlivePingDelay = TimeSpan . FromSeconds ( 5 ) ;
108
108
109
109
await InitializeConnectionAsync ( _noopApplication ) . DefaultTimeout ( ) ;
110
110
@@ -122,7 +122,7 @@ public async Task IntervalNotExceeded_NoPingSent()
122
122
[ Fact ]
123
123
public async Task IntervalExceeded_MultipleTimes_PingsNotSentWhileAwaitingOnAck ( )
124
124
{
125
- _serviceContext . ServerOptions . Limits . Http2 . KeepAlivePingInterval = TimeSpan . FromSeconds ( 1 ) ;
125
+ _serviceContext . ServerOptions . Limits . Http2 . KeepAlivePingDelay = TimeSpan . FromSeconds ( 1 ) ;
126
126
127
127
await InitializeConnectionAsync ( _noopApplication ) . DefaultTimeout ( ) ;
128
128
@@ -146,7 +146,7 @@ await ExpectAsync(Http2FrameType.PING,
146
146
[ Fact ]
147
147
public async Task IntervalExceeded_MultipleTimes_PingSentAfterAck ( )
148
148
{
149
- _serviceContext . ServerOptions . Limits . Http2 . KeepAlivePingInterval = TimeSpan . FromSeconds ( 1 ) ;
149
+ _serviceContext . ServerOptions . Limits . Http2 . KeepAlivePingDelay = TimeSpan . FromSeconds ( 1 ) ;
150
150
151
151
await InitializeConnectionAsync ( _noopApplication ) . DefaultTimeout ( ) ;
152
152
@@ -185,7 +185,7 @@ await ExpectAsync(Http2FrameType.PING,
185
185
[ Fact ]
186
186
public async Task TimeoutExceeded_NoAck_GoAway ( )
187
187
{
188
- _serviceContext . ServerOptions . Limits . Http2 . KeepAlivePingInterval = TimeSpan . FromSeconds ( 1 ) ;
188
+ _serviceContext . ServerOptions . Limits . Http2 . KeepAlivePingDelay = TimeSpan . FromSeconds ( 1 ) ;
189
189
_serviceContext . ServerOptions . Limits . Http2 . KeepAlivePingTimeout = TimeSpan . FromSeconds ( 3 ) ;
190
190
191
191
await InitializeConnectionAsync ( _noopApplication ) . DefaultTimeout ( ) ;
@@ -217,7 +217,7 @@ await ExpectAsync(Http2FrameType.PING,
217
217
[ Fact ]
218
218
public async Task TimeoutExceeded_NonPingActivity_NoGoAway ( )
219
219
{
220
- _serviceContext . ServerOptions . Limits . Http2 . KeepAlivePingInterval = TimeSpan . FromSeconds ( 1 ) ;
220
+ _serviceContext . ServerOptions . Limits . Http2 . KeepAlivePingDelay = TimeSpan . FromSeconds ( 1 ) ;
221
221
_serviceContext . ServerOptions . Limits . Http2 . KeepAlivePingTimeout = TimeSpan . FromSeconds ( 3 ) ;
222
222
223
223
await InitializeConnectionAsync ( _noopApplication ) . DefaultTimeout ( ) ;
@@ -250,7 +250,7 @@ await ExpectAsync(Http2FrameType.HEADERS,
250
250
[ Fact ]
251
251
public async Task IntervalExceeded_StreamStarted_NoPingSent ( )
252
252
{
253
- _serviceContext . ServerOptions . Limits . Http2 . KeepAlivePingInterval = TimeSpan . FromSeconds ( 1 ) ;
253
+ _serviceContext . ServerOptions . Limits . Http2 . KeepAlivePingDelay = TimeSpan . FromSeconds ( 1 ) ;
254
254
255
255
await InitializeConnectionAsync ( _noopApplication ) . DefaultTimeout ( ) ;
256
256
@@ -275,7 +275,7 @@ await ExpectAsync(Http2FrameType.HEADERS,
275
275
[ Fact ]
276
276
public async Task IntervalExceeded_ConnectionFlowControlUsedUpThenPings_NoPingSent ( )
277
277
{
278
- _serviceContext . ServerOptions . Limits . Http2 . KeepAlivePingInterval = TimeSpan . FromSeconds ( 1 ) ;
278
+ _serviceContext . ServerOptions . Limits . Http2 . KeepAlivePingDelay = TimeSpan . FromSeconds ( 1 ) ;
279
279
280
280
// Reduce connection window size so that one stream can fill it
281
281
_serviceContext . ServerOptions . Limits . Http2 . InitialConnectionWindowSize = 65535 ;
@@ -330,7 +330,7 @@ await ExpectAsync(Http2FrameType.HEADERS,
330
330
[ Fact ]
331
331
public async Task TimeoutExceeded_ConnectionFlowControlUsedUpThenPings_NoGoAway ( )
332
332
{
333
- _serviceContext . ServerOptions . Limits . Http2 . KeepAlivePingInterval = TimeSpan . FromSeconds ( 1 ) ;
333
+ _serviceContext . ServerOptions . Limits . Http2 . KeepAlivePingDelay = TimeSpan . FromSeconds ( 1 ) ;
334
334
335
335
// Reduce connection window size so that one stream can fill it
336
336
_serviceContext . ServerOptions . Limits . Http2 . InitialConnectionWindowSize = 65535 ;
0 commit comments