2 writes to MaxConcurrentConnections
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
KestrelServerLimitsTests.cs (2)
223MaxConcurrentConnections = value 235var ex = Assert.Throws<ArgumentOutOfRangeException>(() => new KestrelServerLimits().MaxConcurrentConnections = value);
11 references to MaxConcurrentConnections
Microsoft.AspNetCore.Server.Kestrel.Core (9)
Features\IDecrementConcurrentConnectionCountFeature.cs (2)
7/// A connection feature allowing middleware to stop counting connections towards <see cref="KestrelServerLimits.MaxConcurrentConnections"/>. 13/// Idempotent method to stop counting a connection towards <see cref="KestrelServerLimits.MaxConcurrentConnections"/>.
Internal\KestrelServerImpl.cs (2)
197connectionDelegate = EnforceConnectionLimit(connectionDelegate, Options.Limits.MaxConcurrentConnections, Trace, ServiceContext.Metrics); 216multiplexedConnectionDelegate = EnforceConnectionLimit(multiplexedConnectionDelegate, Options.Limits.MaxConcurrentConnections, Trace, ServiceContext.Metrics);
KestrelServerLimits.cs (5)
217/// <see cref="MaxConcurrentUpgradedConnections" /> limit instead of <see cref="MaxConcurrentConnections" />. 243/// <see cref="MaxConcurrentUpgradedConnections" /> limit instead of <see cref="MaxConcurrentConnections" />. 263writer.WritePropertyName(nameof(MaxConcurrentConnections)); 264if (MaxConcurrentConnections is null) 270writer.WriteNumberValue(MaxConcurrentConnections.Value);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
KestrelServerLimitsTests.cs (2)
211Assert.Null(new KestrelServerLimits().MaxConcurrentConnections); 226Assert.Equal(value, limits.MaxConcurrentConnections);