Internal\KestrelServerImpl.cs (24)
197connectionDelegate = EnforceConnectionLimit(connectionDelegate, Options.Limits.MaxConcurrentConnections, Trace, ServiceContext.Metrics);
216multiplexedConnectionDelegate = EnforceConnectionLimit(multiplexedConnectionDelegate, Options.Limits.MaxConcurrentConnections, Trace, ServiceContext.Metrics);
223AddressBindContext = new AddressBindContext(_serverAddresses, Options, Trace, OnBind);
235KestrelEventSource.Log.AddServerOptions(Options);
277KestrelEventSource.Log.RemoveServerOptions(Options);
301if (Options.ConfigurationLoader?.ReloadOnChange == true && (!_serverAddresses.PreferHostingUrls || _serverAddresses.InternalCollection.Count == 0))
303reloadToken = Options.ConfigurationLoader.GetReloadToken();
306Options.ConfigurationLoader?.LoadInternal();
307Options.ConfigurationLoader?.ProcessEndpointsToAdd();
309await AddressBinder.BindAsync(Options.GetListenOptions(), AddressBindContext!, _httpsConfigurationService.UseHttpsWithDefaults, cancellationToken).ConfigureAwait(false);
341Debug.Assert(Options.ConfigurationLoader != null, "Rebind can only happen when there is a ConfigurationLoader.");
343reloadToken = Options.ConfigurationLoader.GetReloadToken();
344var (endpointsToStop, endpointsToStart) = Options.ConfigurationLoader.Reload();
371Options.OptionsInUse.Remove(listenOption);
413if (Options.Limits.MaxRequestBufferSize.HasValue &&
414Options.Limits.MaxRequestBufferSize < Options.Limits.MaxRequestLineSize)
417CoreStrings.FormatMaxRequestBufferSmallerThanRequestLineBuffer(Options.Limits.MaxRequestBufferSize.Value, Options.Limits.MaxRequestLineSize));
420if (Options.Limits.MaxRequestBufferSize.HasValue &&
421Options.Limits.MaxRequestBufferSize < Options.Limits.MaxRequestHeadersTotalSize)
424CoreStrings.FormatMaxRequestBufferSmallerThanRequestHeaderBuffer(Options.Limits.MaxRequestBufferSize.Value, Options.Limits.MaxRequestHeadersTotalSize));