dotnet/aspnetcore

Read additional KestrelServerOptions from config

Aperta

#4765 aperta il 12 dic 2017

 (37 commenti) (17 reazioni) (0 assegnatari)C# (10.653 fork)batch import
Needs: Designaffected-fewarea-networkingenhancementfeature-kestrelhelp wantedseverity-minor

Metriche repository

Star
 (37.933 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

The new configuration APIs will read endpoints with their certificates and the default certificate. https://github.com/aspnet/KestrelHttpServer/pull/2186

Here are other KestrelServerOptions to consider reading from config (Unsorted):

  • bool AddServerHeader
  • SchedulingMode ApplicationSchedulingMode
  • KestrelServerLimits Limits
    • long? MaxResponseBufferSize
    • long? MaxRequestBufferSize
    • int MaxRequestLineSize
    • int MaxRequestHeadersTotalSize
    • int MaxRequestHeaderCount
    • long? MaxRequestBodySize
    • TimeSpan KeepAliveTimeout
    • TimeSpan RequestHeadersTimeout
    • long? MaxConcurrentConnections
    • long? MaxConcurrentUpgradedConnections
    • MinDataRate MinRequestBodyDataRate
    • MinDataRate MinResponseDataRate
  • Per Endpoint ListenOptions
  • Per Https Endpoint HttpsConnectionAdapterOptions
    • ClientCertificateMode ClientCertificateMode
    • SslProtocols SslProtocols
    • bool CheckCertificateRevocation
    • TimeSpan HandshakeTimeout

Today these must all be set in code in parallel to the configuration.

Guida contributor