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