{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/KestrelHttpServer/issues/950","repository_url":"https://api.github.com/repos/aspnet/KestrelHttpServer","labels_url":"https://api.github.com/repos/aspnet/KestrelHttpServer/issues/950/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/KestrelHttpServer/issues/950/comments","events_url":"https://api.github.com/repos/aspnet/KestrelHttpServer/issues/950/events","html_url":"https://github.com/aspnet/KestrelHttpServer/issues/950","id":163539114,"number":950,"title":"Connection reset by peer when using > 5 concurrent requests","user":{"login":"alexellis","id":6358735,"avatar_url":"https://avatars.githubusercontent.com/u/6358735?v=3","gravatar_id":"","url":"https://api.github.com/users/alexellis","html_url":"https://github.com/alexellis","followers_url":"https://api.github.com/users/alexellis/followers","following_url":"https://api.github.com/users/alexellis/following{/other_user}","gists_url":"https://api.github.com/users/alexellis/gists{/gist_id}","starred_url":"https://api.github.com/users/alexellis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexellis/subscriptions","organizations_url":"https://api.github.com/users/alexellis/orgs","repos_url":"https://api.github.com/users/alexellis/repos","events_url":"https://api.github.com/users/alexellis/events{/privacy}","received_events_url":"https://api.github.com/users/alexellis/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/aspnet/KestrelHttpServer/labels/0%20-%20Backlog","name":"0 - Backlog","color":"CCCCCC"}],"state":"closed","locked":false,"assignee":{"login":"cesarbs","id":924164,"avatar_url":"https://avatars.githubusercontent.com/u/924164?v=3","gravatar_id":"","url":"https://api.github.com/users/cesarbs","html_url":"https://github.com/cesarbs","followers_url":"https://api.github.com/users/cesarbs/followers","following_url":"https://api.github.com/users/cesarbs/following{/other_user}","gists_url":"https://api.github.com/users/cesarbs/gists{/gist_id}","starred_url":"https://api.github.com/users/cesarbs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cesarbs/subscriptions","organizations_url":"https://api.github.com/users/cesarbs/orgs","repos_url":"https://api.github.com/users/cesarbs/repos","events_url":"https://api.github.com/users/cesarbs/events{/privacy}","received_events_url":"https://api.github.com/users/cesarbs/received_events","type":"User","site_admin":false},"assignees":[{"login":"cesarbs","id":924164,"avatar_url":"https://avatars.githubusercontent.com/u/924164?v=3","gravatar_id":"","url":"https://api.github.com/users/cesarbs","html_url":"https://github.com/cesarbs","followers_url":"https://api.github.com/users/cesarbs/followers","following_url":"https://api.github.com/users/cesarbs/following{/other_user}","gists_url":"https://api.github.com/users/cesarbs/gists{/gist_id}","starred_url":"https://api.github.com/users/cesarbs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cesarbs/subscriptions","organizations_url":"https://api.github.com/users/cesarbs/orgs","repos_url":"https://api.github.com/users/cesarbs/repos","events_url":"https://api.github.com/users/cesarbs/events{/privacy}","received_events_url":"https://api.github.com/users/cesarbs/received_events","type":"User","site_admin":false}],"milestone":null,"comments":13,"created_at":"2016-07-02T23:04:34Z","updated_at":"2016-08-09T19:28:47Z","closed_at":"2016-08-08T19:12:02Z","body":"Is there a reason I'm missing why apache bench 'crashes' with more than 5 concurrent requests to a Kestrel hosted .NET app?\r\n\r\nHere's my whole folder:\r\n\r\n```\r\n$ cat *\r\nFROM microsoft/dotnet:latest\r\nWORKDIR /root/\r\nADD project.json ./\r\nRUN dotnet restore\r\nADD *.cs ./\r\nRUN dotnet build\r\nEXPOSE 5000\r\nCMD [\"dotnet\", \"run\", \"--server.urls=http://0.0.0.0:5000\"]\r\nusing System;\r\nusing Microsoft.AspNetCore.Hosting;\r\n\r\nnamespace aspnetcoreapp\r\n{\r\n    public class Program\r\n    {\r\n        public static void Main(string[] args)\r\n        {\r\n            var host = new WebHostBuilder()\r\n            .UseUrls(\"http://0.0.0.0:5000/\")\r\n                .UseKestrel()\r\n                .UseStartup<Startup>()\r\n                .Build();\r\n\r\n            host.Run();\r\n        }\r\n    }\r\n}\r\n\r\nusing System;\r\nusing Microsoft.AspNetCore.Builder;\r\nusing Microsoft.AspNetCore.Hosting;\r\nusing Microsoft.AspNetCore.Http;\r\n\r\nnamespace aspnetcoreapp\r\n{\r\n    public class Startup\r\n    {\r\n        public void Configure(IApplicationBuilder app)\r\n        {\r\n            app.Run(context =>\r\n            {\r\n                return context.Response.WriteAsync(\"Hello from ASP.NET Core!\");\r\n            });\r\n        }\r\n    }\r\n}\r\n{\r\n  \"version\": \"1.0.0-*\",\r\n  \"buildOptions\": {\r\n    \"emitEntryPoint\": true\r\n  },\r\n  \"dependencies\": {\r\n    \"Microsoft.NETCore.App\": {\r\n      \"type\": \"platform\",\r\n      \"version\": \"1.0.0-rc2-3002702\"\r\n    },\r\n    \"Microsoft.AspNetCore.Server.Kestrel\": \"1.0.0\"\r\n  },\r\n  \"frameworks\": {\r\n    \"netcoreapp1.0\": { }\r\n  }\r\n}\r\n```\r\n\r\n**Error:**\r\n\r\n```\r\n$ ab -n 1000 -c 8 http://localhost:5000/\r\nThis is ApacheBench, Version 2.3 <$Revision: 1706008 $>\r\nCopyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/\r\nLicensed to The Apache Software Foundation, http://www.apache.org/\r\n\r\nBenchmarking localhost (be patient)\r\napr_socket_recv: Connection reset by peer (54)\r\n```\r\n\r\n**With 5 requests:**\r\n\r\n```\r\n$ ab -n 1000 -c 5 http://localhost:5000/\r\nThis is ApacheBench, Version 2.3 <$Revision: 1706008 $>\r\nCopyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/\r\nLicensed to The Apache Software Foundation, http://www.apache.org/\r\n\r\nBenchmarking localhost (be patient)\r\nCompleted 100 requests\r\nCompleted 200 requests\r\nCompleted 300 requests\r\nCompleted 400 requests\r\nCompleted 500 requests\r\nCompleted 600 requests\r\nCompleted 700 requests\r\nCompleted 800 requests\r\nCompleted 900 requests\r\nCompleted 1000 requests\r\nFinished 1000 requests\r\n\r\n\r\nServer Software:        Kestrel\r\nServer Hostname:        localhost\r\nServer Port:            5000\r\n\r\nDocument Path:          /\r\nDocument Length:        24 bytes\r\n\r\nConcurrency Level:      5\r\nTime taken for tests:   1.275 seconds\r\nComplete requests:      1000\r\nFailed requests:        0\r\nTotal transferred:      97000 bytes\r\nHTML transferred:       24000 bytes\r\nRequests per second:    784.29 [#/sec] (mean)\r\nTime per request:       6.375 [ms] (mean)\r\nTime per request:       1.275 [ms] (mean, across all concurrent requests)\r\nTransfer rate:          74.29 [Kbytes/sec] received\r\n\r\nConnection Times (ms)\r\n              min  mean[+/-sd] median   max\r\nConnect:        0    0   0.3      0       4\r\nProcessing:     1    6   3.6      5      32\r\nWaiting:        1    6   3.5      5      32\r\nTotal:          2    6   3.6      5      33\r\n\r\nPercentage of the requests served within a certain time (ms)\r\n  50%      5\r\n  66%      6\r\n  75%      7\r\n  80%      8\r\n  90%     10\r\n  95%     13\r\n  98%     18\r\n  99%     21\r\n 100%     33 (longest request)\r\n```"},"comment":{"url":"https://api.github.com/repos/aspnet/KestrelHttpServer/issues/comments/238664018","html_url":"https://github.com/aspnet/KestrelHttpServer/issues/950#issuecomment-238664018","issue_url":"https://api.github.com/repos/aspnet/KestrelHttpServer/issues/950","id":238664018,"user":{"login":"cesarbs","id":924164,"avatar_url":"https://avatars.githubusercontent.com/u/924164?v=3","gravatar_id":"","url":"https://api.github.com/users/cesarbs","html_url":"https://github.com/cesarbs","followers_url":"https://api.github.com/users/cesarbs/followers","following_url":"https://api.github.com/users/cesarbs/following{/other_user}","gists_url":"https://api.github.com/users/cesarbs/gists{/gist_id}","starred_url":"https://api.github.com/users/cesarbs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cesarbs/subscriptions","organizations_url":"https://api.github.com/users/cesarbs/orgs","repos_url":"https://api.github.com/users/cesarbs/repos","events_url":"https://api.github.com/users/cesarbs/events{/privacy}","received_events_url":"https://api.github.com/users/cesarbs/received_events","type":"User","site_admin":false},"created_at":"2016-08-09T19:28:47Z","updated_at":"2016-08-09T19:28:47Z","body":"I can't reproduce on Docker for Mac either (if I understand correctly, that's where your Docker host).\r\n\r\nBTW, I had to change `project.json`to use version 1.0.0 of `Microsoft.NETCore.App`. I'm using CLI version 1.0.0-preview2-003121. What version are you using?\r\n\r\nThe segfault you got seems like a NuGet issue. I suggest you capture a dump and file an issue with them."}}
{"actor":{"display_login":"cesarbs"}}