1 write to _timeoutControl
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
TimeoutControlTests.cs (1)
21
_timeoutControl
= new TimeoutControl(_mockTimeoutHandler.Object, _timeProvider);
112 references to _timeoutControl
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (112)
TimeoutControlTests.cs (112)
29
_timeoutControl
.Debugger = mockDebugger.Object;
32
_timeoutControl
.Initialize();
33
_timeoutControl
.SetTimeout(TimeSpan.FromTicks(1), TimeoutReason.RequestHeaders);
34
_timeoutControl
.Tick(_timeProvider.GetTimestamp(now + 2, Heartbeat.Interval));
44
_timeoutControl
.Debugger = mockDebugger.Object;
67
_timeoutControl
.Initialize();
69
_timeoutControl
.StartRequestBody(minRate);
70
_timeoutControl
.StartTimingRead();
74
_timeoutControl
.BytesRead(10);
75
_timeoutControl
.Tick(now);
82
_timeoutControl
.Tick(now);
84
_timeoutControl
.BytesRead(10);
85
_timeoutControl
.Tick(now);
99
_timeoutControl
.Initialize();
101
_timeoutControl
.StartRequestBody(minRate);
102
_timeoutControl
.StartTimingRead();
106
_timeoutControl
.Tick(now);
108
_timeoutControl
.BytesRead(400);
109
_timeoutControl
.Tick(now);
113
_timeoutControl
.BytesRead(200);
114
_timeoutControl
.Tick(now);
121
_timeoutControl
.BytesRead(0);
122
_timeoutControl
.Tick(now);
129
_timeoutControl
.BytesRead(0);
130
_timeoutControl
.Tick(now);
137
_timeoutControl
.BytesRead(0);
138
_timeoutControl
.Tick(now);
145
_timeoutControl
.BytesRead(0);
146
_timeoutControl
.Tick(now);
158
_timeoutControl
.Initialize();
160
_timeoutControl
.StartRequestBody(minRate);
161
_timeoutControl
.StartTimingRead();
165
_timeoutControl
.Tick(_timeProvider.GetTimestamp());
167
_timeoutControl
.Tick(_timeProvider.GetTimestamp());
169
_timeoutControl
.BytesRead(600);
170
_timeoutControl
.Tick(_timeProvider.GetTimestamp());
174
_timeoutControl
.StopTimingRead();
178
_timeoutControl
.Tick(_timeProvider.GetTimestamp());
182
_timeoutControl
.Tick(_timeProvider.GetTimestamp());
189
_timeoutControl
.StartTimingRead();
193
_timeoutControl
.Tick(_timeProvider.GetTimestamp());
195
_timeoutControl
.Tick(_timeProvider.GetTimestamp());
202
_timeoutControl
.Tick(_timeProvider.GetTimestamp());
214
_timeoutControl
.Initialize();
216
_timeoutControl
.StartRequestBody(minRate);
217
_timeoutControl
.StartTimingRead();
221
_timeoutControl
.Tick(_timeProvider.GetTimestamp());
223
_timeoutControl
.Tick(_timeProvider.GetTimestamp());
224
_timeoutControl
.BytesRead(200);
231
_timeoutControl
.StopTimingRead();
235
_timeoutControl
.StartTimingRead();
239
_timeoutControl
.BytesRead(100);
240
_timeoutControl
.Tick(_timeProvider.GetTimestamp());
247
_timeoutControl
.Tick(_timeProvider.GetTimestamp());
260
_timeoutControl
.Initialize();
262
_timeoutControl
.StartRequestBody(minRate);
263
_timeoutControl
.StartTimingRead();
265
_timeoutControl
.SetTimeout(timeout, TimeoutReason.RequestBodyDrain);
269
_timeoutControl
.BytesRead(1);
270
_timeoutControl
.Tick(_timeProvider.GetTimestamp());
277
_timeoutControl
.Tick(_timeProvider.GetTimestamp());
292
_timeoutControl
.Initialize();
293
_timeoutControl
.InitializeHttp2(flowControl);
295
_timeoutControl
.StartRequestBody(minRate);
296
_timeoutControl
.StartTimingRead();
300
_timeoutControl
.BytesRead(100);
301
_timeoutControl
.Tick(now);
303
_timeoutControl
.BytesRead(100);
304
_timeoutControl
.Tick(now);
311
_timeoutControl
.Tick(now);
318
_timeoutControl
.Tick(now);
325
_timeoutControl
.Tick(now);
338
_timeoutControl
.Initialize();
340
_timeoutControl
.StartRequestBody(minRate);
341
_timeoutControl
.StartTimingRead();
345
_timeoutControl
.BytesRead(100);
346
_timeoutControl
.Tick(now);
348
_timeoutControl
.BytesRead(100);
349
_timeoutControl
.Tick(now);
353
_timeoutControl
.BytesRead(100);
354
_timeoutControl
.Tick(now);
361
_timeoutControl
.BytesRead(100);
362
_timeoutControl
.Tick(now);
364
_timeoutControl
.Tick(now);
376
_timeoutControl
.Initialize();
379
_timeoutControl
.BytesWrittenToBuffer(minRate, 400);
380
_timeoutControl
.StartTimingWrite();
394
_timeoutControl
.Initialize();
397
_timeoutControl
.BytesWrittenToBuffer(minRate, 100);
398
_timeoutControl
.StartTimingWrite();
418
_timeoutControl
.Initialize();
421
_timeoutControl
.BytesWrittenToBuffer(minRate, 500);
422
_timeoutControl
.StartTimingWrite();
425
_timeoutControl
.BytesWrittenToBuffer(minRate, 300);
426
_timeoutControl
.StartTimingWrite();
435
_timeoutControl
.StopTimingWrite();
451
_timeoutControl
.Initialize();
456
_timeoutControl
.BytesWrittenToBuffer(minRate, writeSize);
460
_timeoutControl
.BytesWrittenToBuffer(minRate, writeSize);
461
_timeoutControl
.StartTimingWrite();
471
_timeoutControl
.Tick(_timeProvider.GetTimestamp());
482
_timeoutControl
.Initialize();
485
_timeoutControl
.BytesWrittenToBuffer(minRate, 400);
486
_timeoutControl
.StartTimingWrite();
490
_timeoutControl
.Tick(_timeProvider.GetTimestamp());
507
_timeoutControl
.Initialize();
509
_timeoutControl
.StartRequestBody(minRate);
510
_timeoutControl
.StartTimingRead();
516
_timeoutControl
.BytesRead(1);
517
_timeoutControl
.Tick(_timeProvider.GetTimestamp());
527
_timeoutControl
.Tick(_timeProvider.GetTimestamp());
531
_timeoutControl
.Tick(_timeProvider.GetTimestamp());