dotnet/aspnetcore

Read additional KestrelServerOptions from config

オープン

#4,765 opened on 2017/12/12

 (37 件のコメント) (17 件のリアクション) (0 人の担当者)C# (10,653 件のフォーク)batch import
Needs: Designaffected-fewarea-networkingenhancementfeature-kestrelhelp wantedseverity-minor

Repository metrics

Stars
 (37,933 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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.

コントリビューターガイド