respect kestrel request line size
authorEirik Tsarpalis <eirik.tsarpalis@gmail.com>
Fri, 26 Jul 2019 19:44:31 +0000 (20:44 +0100)
committerEirik Tsarpalis <eirik.tsarpalis@gmail.com>
Fri, 26 Jul 2019 19:44:31 +0000 (20:44 +0100)
Commit migrated from https://github.com/dotnet/corefx/commit/261ff104b73439fda85a950e2dfb3f5bc8e23c5b

src/libraries/System.Net.Http/tests/StressTests/HttpStress/StressServer.cs

index ff11529..3f68346 100644 (file)
@@ -63,7 +63,7 @@ namespace HttpStress
                 // Use Kestrel, and configure it for HTTPS with a self-signed test certificate.
                 host = host.UseKestrel(ko =>
                 {
-                    MaxRequestLineSize = ko.Limits.MaxRequestLineSize;
+                    MaxRequestLineSize = ko.Limits.MaxRequestLineSize - 10;
                     ko.ListenLocalhost(serverUri.Port, listenOptions =>
                     {
                         // Create self-signed cert for server.