38 references to TimeoutReason
Microsoft.AspNetCore.Server.Kestrel.Core (38)
Internal\Http\Http1Connection.cs (2)
184
TimeoutControl.ResetTimeout(ServerOptions.Limits.RequestHeadersTimeout,
TimeoutReason
.RequestHeaders);
712
TimeoutControl.SetTimeout(ServerOptions.Limits.KeepAliveTimeout,
TimeoutReason
.KeepAlive);
Internal\Http\Http1MessageBody.cs (1)
86
_context.TimeoutControl.SetTimeout(Constants.RequestBodyDrainTimeout,
TimeoutReason
.RequestBodyDrain);
Internal\Http2\Http2Connection.cs (11)
297
TimeoutControl.SetTimeout(Limits.KeepAliveTimeout,
TimeoutReason
.KeepAlive);
855
if (TimeoutControl.TimerReason !=
TimeoutReason
.None)
857
Debug.Assert(TimeoutControl.TimerReason ==
TimeoutReason
.KeepAlive, "Non keep-alive timeout set at start of stream.");
863
TimeoutControl.SetTimeout(Limits.RequestHeadersTimeout,
TimeoutReason
.RequestHeaders);
1081
if (TimeoutControl.TimerReason ==
TimeoutReason
.KeepAlive)
1083
TimeoutControl.ResetTimeout(Limits.KeepAliveTimeout,
TimeoutReason
.KeepAlive);
1198
Debug.Assert(TimeoutControl.TimerReason ==
TimeoutReason
.RequestHeaders, "Received continuation frame without request header timeout being set.");
1523
if (TimeoutControl.TimerReason ==
TimeoutReason
.None)
1525
TimeoutControl.SetTimeout(Limits.KeepAliveTimeout,
TimeoutReason
.KeepAlive);
1530
Debug.Assert(TimeoutControl.TimerReason ==
TimeoutReason
.RequestHeaders ||
1531
TimeoutControl.TimerReason ==
TimeoutReason
.KeepAlive);
Internal\Http3\Http3Connection.cs (3)
359
TimeoutControl.SetTimeout(Limits.KeepAliveTimeout,
TimeoutReason
.KeepAlive);
823
if (_activeRequestCount == 0 && TimeoutControl.TimerReason ==
TimeoutReason
.KeepAlive)
844
TimeoutControl.SetTimeout(Limits.KeepAliveTimeout,
TimeoutReason
.KeepAlive);
Internal\HttpConnection.cs (7)
274
public void OnTimeout(
TimeoutReason
reason)
280
case
TimeoutReason
.KeepAlive:
283
case
TimeoutReason
.RequestHeaders:
286
case
TimeoutReason
.ReadDataRate:
289
case
TimeoutReason
.WriteDataRate:
293
case
TimeoutReason
.RequestBodyDrain:
294
case
TimeoutReason
.TimeoutFeature:
Internal\Infrastructure\ITimeoutControl.cs (3)
10
TimeoutReason
TimerReason { get; }
12
void SetTimeout(TimeSpan timeout,
TimeoutReason
timeoutReason);
13
void ResetTimeout(TimeSpan timeout,
TimeoutReason
timeoutReason);
Internal\Infrastructure\ITimeoutHandler.cs (1)
8
void OnTimeout(
TimeoutReason
reason);
Internal\Infrastructure\TimeoutControl.cs (10)
42
public
TimeoutReason
TimerReason { get; private set; }
66
var
timeoutReason = TimerReason;
139
_timeoutHandler.OnTimeout(
TimeoutReason
.ReadDataRate);
163
_timeoutHandler.OnTimeout(
TimeoutReason
.WriteDataRate);
167
public void SetTimeout(TimeSpan timeout,
TimeoutReason
timeoutReason)
174
public void ResetTimeout(TimeSpan timeout,
TimeoutReason
timeoutReason)
183
TimerReason =
TimeoutReason
.None;
186
private void AssignTimeout(TimeSpan timeout,
TimeoutReason
timeoutReason)
323
SetTimeout(timeSpan,
TimeoutReason
.TimeoutFeature);
333
ResetTimeout(timeSpan,
TimeoutReason
.TimeoutFeature);