{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/corefx/issues/2760","labels_url":"https://api.github.com/repos/dotnet/corefx/issues/2760/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/corefx/issues/2760/comments","events_url":"https://api.github.com/repos/dotnet/corefx/issues/2760/events","html_url":"https://github.com/dotnet/corefx/issues/2760","id":100607811,"number":2760,"title":"HttpClient response stream.Read/ReadAsync sporadically returns 0 for a non empty response","user":{"login":"KKhurin","id":2626148,"avatar_url":"https://avatars.githubusercontent.com/u/2626148?v=3","gravatar_id":"","url":"https://api.github.com/users/KKhurin","html_url":"https://github.com/KKhurin","followers_url":"https://api.github.com/users/KKhurin/followers","following_url":"https://api.github.com/users/KKhurin/following{/other_user}","gists_url":"https://api.github.com/users/KKhurin/gists{/gist_id}","starred_url":"https://api.github.com/users/KKhurin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KKhurin/subscriptions","organizations_url":"https://api.github.com/users/KKhurin/orgs","repos_url":"https://api.github.com/users/KKhurin/repos","events_url":"https://api.github.com/users/KKhurin/events{/privacy}","received_events_url":"https://api.github.com/users/KKhurin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dotnet/corefx/labels/0%20-%20Backlog","name":"0 - Backlog","color":"CCCCCC"},{"url":"https://api.github.com/repos/dotnet/corefx/labels/System.Net","name":"System.Net","color":"d4c5f9"}],"state":"open","locked":false,"assignee":{"login":"davidsh","id":7684835,"avatar_url":"https://avatars.githubusercontent.com/u/7684835?v=3","gravatar_id":"","url":"https://api.github.com/users/davidsh","html_url":"https://github.com/davidsh","followers_url":"https://api.github.com/users/davidsh/followers","following_url":"https://api.github.com/users/davidsh/following{/other_user}","gists_url":"https://api.github.com/users/davidsh/gists{/gist_id}","starred_url":"https://api.github.com/users/davidsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidsh/subscriptions","organizations_url":"https://api.github.com/users/davidsh/orgs","repos_url":"https://api.github.com/users/davidsh/repos","events_url":"https://api.github.com/users/davidsh/events{/privacy}","received_events_url":"https://api.github.com/users/davidsh/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-08-12T18:38:48Z","updated_at":"2015-08-12T19:58:38Z","closed_at":null,"body":"We see it both in WCF streaming scenarios (receiving a stream from WCF service) and in simple repros like:\r\n~~~\r\nvar c = (await client.PostAsync(url, new StreamContent(new MyStream()))).Content;\r\nvar stream = await c.ReadAsStreamAsync();\r\nbyte[] buff = new byte[4096];\r\nvar bytesread = await stream.ReadAsync(buff, 0, 4096); // bytesread is sporadically 0 even though the response does contain data\r\n~~~\r\n\r\nAbout a half of WCF streaming scenarios fail because of this bug\r\n"},"comment":{"url":"https://api.github.com/repos/dotnet/corefx/issues/comments/130427072","html_url":"https://github.com/dotnet/corefx/issues/2760#issuecomment-130427072","issue_url":"https://api.github.com/repos/dotnet/corefx/issues/2760","id":130427072,"user":{"login":"davidsh","id":7684835,"avatar_url":"https://avatars.githubusercontent.com/u/7684835?v=3","gravatar_id":"","url":"https://api.github.com/users/davidsh","html_url":"https://github.com/davidsh","followers_url":"https://api.github.com/users/davidsh/followers","following_url":"https://api.github.com/users/davidsh/following{/other_user}","gists_url":"https://api.github.com/users/davidsh/gists{/gist_id}","starred_url":"https://api.github.com/users/davidsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidsh/subscriptions","organizations_url":"https://api.github.com/users/davidsh/orgs","repos_url":"https://api.github.com/users/davidsh/repos","events_url":"https://api.github.com/users/davidsh/events{/privacy}","received_events_url":"https://api.github.com/users/davidsh/received_events","type":"User","site_admin":false},"created_at":"2015-08-12T19:58:38Z","updated_at":"2015-08-12T19:58:38Z","body":"cc: @CIPop @SidharthNabar "}}