{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/coreclr/issues/2501","labels_url":"https://api.github.com/repos/dotnet/coreclr/issues/2501/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/coreclr/issues/2501/comments","events_url":"https://api.github.com/repos/dotnet/coreclr/issues/2501/events","html_url":"https://github.com/dotnet/coreclr/issues/2501","id":124560508,"number":2501,"title":".NET Core TcpClient NetworkStream WriteAsync never returns when pending ReadAsync","user":{"login":"tmds","id":1025424,"avatar_url":"https://avatars.githubusercontent.com/u/1025424?v=3","gravatar_id":"","url":"https://api.github.com/users/tmds","html_url":"https://github.com/tmds","followers_url":"https://api.github.com/users/tmds/followers","following_url":"https://api.github.com/users/tmds/following{/other_user}","gists_url":"https://api.github.com/users/tmds/gists{/gist_id}","starred_url":"https://api.github.com/users/tmds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmds/subscriptions","organizations_url":"https://api.github.com/users/tmds/orgs","repos_url":"https://api.github.com/users/tmds/repos","events_url":"https://api.github.com/users/tmds/events{/privacy}","received_events_url":"https://api.github.com/users/tmds/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-01-01T20:36:38Z","updated_at":"2016-01-01T21:55:48Z","closed_at":null,"body":".NET Core TcpClient NetworkStream WriteAsync doesn't return when there is a pending ReadAsync\r\n\r\nThe stacktrace of WriteAsync shows it is waiting for a semaphore. Looking at [Stream.cs](https://github.com/dotnet/coreclr/blob/master/src/mscorlib/src/System/IO/Stream.cs) shows\r\nBeginReadInternal and WriteReadInternal use the same semaphore.\r\n\r\nA read and write should be supported simultaneous for a TCP stream. This code is working fine on the .NET Framework."},"comment":{"url":"https://api.github.com/repos/dotnet/coreclr/issues/comments/168340430","html_url":"https://github.com/dotnet/coreclr/issues/2501#issuecomment-168340430","issue_url":"https://api.github.com/repos/dotnet/coreclr/issues/2501","id":168340430,"user":{"login":"ayende","id":116915,"avatar_url":"https://avatars.githubusercontent.com/u/116915?v=3","gravatar_id":"","url":"https://api.github.com/users/ayende","html_url":"https://github.com/ayende","followers_url":"https://api.github.com/users/ayende/followers","following_url":"https://api.github.com/users/ayende/following{/other_user}","gists_url":"https://api.github.com/users/ayende/gists{/gist_id}","starred_url":"https://api.github.com/users/ayende/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ayende/subscriptions","organizations_url":"https://api.github.com/users/ayende/orgs","repos_url":"https://api.github.com/users/ayende/repos","events_url":"https://api.github.com/users/ayende/events{/privacy}","received_events_url":"https://api.github.com/users/ayende/received_events","type":"User","site_admin":false},"created_at":"2016-01-01T21:55:47Z","updated_at":"2016-01-01T21:55:47Z","body":"That isnt network stream. It override the method\nWhat is the full assembly qualified name of the type\nOn Jan 1, 2016 23:48, \"Tom Deseyn\" <notifications@github.com> wrote:\n\n> Stack trace of NetworkStream WriteAsync call:\n> [image: stacktrace]\n> <https://cloud.githubusercontent.com/assets/1025424/12072322/86e299c2-b0d9-11e5-8e3b-ab52bb3563ce.png>\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/dotnet/coreclr/issues/2501#issuecomment-168340165>.\n>\n"}}