2 writes to MaxConcurrentConnections
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
KestrelServerLimitsTests.cs (2)
223
MaxConcurrentConnections
= value
235
var 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)
197
connectionDelegate = EnforceConnectionLimit(connectionDelegate, Options.Limits.
MaxConcurrentConnections
, Trace, ServiceContext.Metrics);
216
multiplexedConnectionDelegate = 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
" />.
263
writer.WritePropertyName(nameof(
MaxConcurrentConnections
));
264
if (
MaxConcurrentConnections
is null)
270
writer.WriteNumberValue(
MaxConcurrentConnections
.Value);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
KestrelServerLimitsTests.cs (2)
211
Assert.Null(new KestrelServerLimits().
MaxConcurrentConnections
);
226
Assert.Equal(value, limits.
MaxConcurrentConnections
);