ソースを参照

Improve the doc comment for MaxAccepts (#28166)

* Improve the doc comment for MaxAccepts

- Added defaults
- Explain that it's about concurrent

* Update src/Servers/HttpSys/src/HttpSysOptions.cs
David Fowler 5 年 前
コミット
2d1e963637
1 ファイル変更4 行追加1 行削除
  1. 4 1
      src/Servers/HttpSys/src/HttpSysOptions.cs

+ 4 - 1
src/Servers/HttpSys/src/HttpSysOptions.cs

@@ -68,8 +68,11 @@ namespace Microsoft.AspNetCore.Server.HttpSys
         public ClientCertificateMethod ClientCertificateMethod { get; set; } = ClientCertificateMethod.AllowCertificate;
         public ClientCertificateMethod ClientCertificateMethod { get; set; } = ClientCertificateMethod.AllowCertificate;
 
 
         /// <summary>
         /// <summary>
-        /// The maximum number of concurrent accepts.
+        /// The number of concurrent workers draining requests from the Http.sys queue.
         /// </summary>
         /// </summary>
+        /// <remarks>
+        /// Defaults to 5 times the number of processors.
+        /// </remarks>
         public int MaxAccepts { get; set; } = DefaultMaxAccepts;
         public int MaxAccepts { get; set; } = DefaultMaxAccepts;
 
 
         /// <summary>
         /// <summary>