{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/Home/issues/3126","repository_url":"https://api.github.com/repos/aspnet/Home","labels_url":"https://api.github.com/repos/aspnet/Home/issues/3126/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/Home/issues/3126/comments","events_url":"https://api.github.com/repos/aspnet/Home/issues/3126/events","html_url":"https://github.com/aspnet/Home/issues/3126","id":321476562,"number":3126,"title":"ASP.NET Core 2.1 RC1: SocketException: An existing connection was forcibly closed by the remote host","user":{"login":"henkmollema","id":1521207,"avatar_url":"https://avatars2.githubusercontent.com/u/1521207?v=4","gravatar_id":"","url":"https://api.github.com/users/henkmollema","html_url":"https://github.com/henkmollema","followers_url":"https://api.github.com/users/henkmollema/followers","following_url":"https://api.github.com/users/henkmollema/following{/other_user}","gists_url":"https://api.github.com/users/henkmollema/gists{/gist_id}","starred_url":"https://api.github.com/users/henkmollema/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henkmollema/subscriptions","organizations_url":"https://api.github.com/users/henkmollema/orgs","repos_url":"https://api.github.com/users/henkmollema/repos","events_url":"https://api.github.com/users/henkmollema/events{/privacy}","received_events_url":"https://api.github.com/users/henkmollema/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-05-09T08:26:00Z","updated_at":"2018-05-12T10:10:56Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"After upgrading my application to ASP.NET Core 2.1 RC1 it suddenly throws a `SocketException` and exits when debugging it in Visual Studio using the command line launch profile.\r\n\r\nThe following exception is thrown:\r\n\r\n```\r\nSystem.AggregateException\r\n  HResult=0x80131500\r\n  Message=One or more errors occurred.\r\n  Source=System.IO.Pipelines\r\n  StackTrace:\r\n   at System.IO.Pipelines.PipeCompletionCallbacks.Execute()\r\n   at System.IO.Pipelines.Pipe.<>c.<.cctor>b__79_2(Object state)\r\n   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Threading.ThreadPoolWorkQueue.Dispatch()\r\n\r\nInner Exception 1:\r\nSocketException: An existing connection was forcibly closed by the remote host\r\n```\r\n\r\n### Environment\r\n\r\n```\r\nλ dotnet --info\r\n.NET Core SDK (reflecting any global.json):\r\n Version:   2.1.300-rc1-008673\r\n Commit:    f5e3ddbe73\r\n\r\nRuntime Environment:\r\n OS Name:     Windows\r\n OS Version:  10.0.16299\r\n OS Platform: Windows\r\n RID:         win10-x64\r\n Base Path:   C:\\Program Files\\dotnet\\sdk\\2.1.300-rc1-008673\\\r\n\r\nHost (useful for support):\r\n  Version: 2.1.0-rc1\r\n  Commit:  eb9bc92051\r\n\r\n.NET Core SDKs installed:\r\n  2.1.104 [C:\\Program Files\\dotnet\\sdk]\r\n  2.1.200 [C:\\Program Files\\dotnet\\sdk]\r\n  2.1.300-preview2-008533 [C:\\Program Files\\dotnet\\sdk]\r\n  2.1.300-rc1-008673 [C:\\Program Files\\dotnet\\sdk]\r\n\r\n.NET Core runtimes installed:\r\n  Microsoft.AspNetCore.All 2.1.0-preview1-final [C:\\Program Files\\dotnet\\shared\\Microsoft.AspNetCore.All]\r\n  Microsoft.AspNetCore.All 2.1.0-preview2-final [C:\\Program Files\\dotnet\\shared\\Microsoft.AspNetCore.All]\r\n  Microsoft.AspNetCore.All 2.1.0-rc1-final [C:\\Program Files\\dotnet\\shared\\Microsoft.AspNetCore.All]\r\n  Microsoft.AspNetCore.App 2.1.0-preview1-final [C:\\Program Files\\dotnet\\shared\\Microsoft.AspNetCore.App]\r\n  Microsoft.AspNetCore.App 2.1.0-preview2-final [C:\\Program Files\\dotnet\\shared\\Microsoft.AspNetCore.App]\r\n  Microsoft.AspNetCore.App 2.1.0-rc1-final [C:\\Program Files\\dotnet\\shared\\Microsoft.AspNetCore.App]\r\n  Microsoft.NETCore.App 2.0.5 [C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App]\r\n  Microsoft.NETCore.App 2.0.6 [C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App]\r\n  Microsoft.NETCore.App 2.0.7 [C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App]\r\n  Microsoft.NETCore.App 2.1.0-preview1-26216-03 [C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App]\r\n  Microsoft.NETCore.App 2.1.0-preview2-26406-04 [C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App]\r\n  Microsoft.NETCore.App 2.1.0-rc1 [C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App]\r\n```\r\n\r\n### Steps to reproduce\r\n1. Create a new, empty Web Application targeting ASP.NET Core 2.1 RC1 and check \"Configure HTTPS\"\r\n1. Start debugging. make a few requests to application and wait a while\r\n\r\nThis bug does not seem to reproduce when removing the HTTPS endpoint or moving it to the second endpoint and only calling the HTTP endpoint like this: \r\n\r\n```json\r\n\"applicationUrl\": \"http://localhost:5000;https://localhost:5001\"\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/aspnet/Home/issues/comments/388544878","html_url":"https://github.com/aspnet/Home/issues/3126#issuecomment-388544878","issue_url":"https://api.github.com/repos/aspnet/Home/issues/3126","id":388544878,"user":{"login":"ContiGabriel","id":16102707,"avatar_url":"https://avatars1.githubusercontent.com/u/16102707?v=4","gravatar_id":"","url":"https://api.github.com/users/ContiGabriel","html_url":"https://github.com/ContiGabriel","followers_url":"https://api.github.com/users/ContiGabriel/followers","following_url":"https://api.github.com/users/ContiGabriel/following{/other_user}","gists_url":"https://api.github.com/users/ContiGabriel/gists{/gist_id}","starred_url":"https://api.github.com/users/ContiGabriel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ContiGabriel/subscriptions","organizations_url":"https://api.github.com/users/ContiGabriel/orgs","repos_url":"https://api.github.com/users/ContiGabriel/repos","events_url":"https://api.github.com/users/ContiGabriel/events{/privacy}","received_events_url":"https://api.github.com/users/ContiGabriel/received_events","type":"User","site_admin":false},"created_at":"2018-05-12T10:10:56Z","updated_at":"2018-05-12T10:10:56Z","author_association":"NONE","body":"Just updated to 2.1 RC and I get the same error. the way I can recreate this is by refreshing the page quickly.\r\nSystem.AggregateException\r\n  HResult=0x80131500\r\n  Message=One or more errors occurred.\r\n  Source=System.IO.Pipelines\r\n  StackTrace:\r\n   at System.IO.Pipelines.PipeCompletionCallbacks.Execute()\r\n   at System.IO.Pipelines.Pipe.<>c.<.cctor>b__79_2(Object state)\r\n   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Threading.ThreadPoolWorkQueue.Dispatch()\r\n\r\nInner Exception 1:\r\nSocketException: An existing connection was forcibly closed by the remote host\r\n\r\n\r\nSystem.AggregateException\r\n  HResult=0x80131500\r\n  Message=One or more errors occurred.\r\n  Source=System.IO.Pipelines\r\n  StackTrace:\r\n   at System.IO.Pipelines.PipeCompletionCallbacks.Execute()\r\n   at System.IO.Pipelines.Pipe.<>c.<.cctor>b__79_2(Object state)\r\n   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Threading.ThreadPoolWorkQueue.Dispatch()\r\n\r\nInner Exception 1:\r\nSocketException: An existing connection was forcibly closed by the remote host"}}
{"actor":{"display_login":"ContiGabriel"}}