{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/Mvc/issues/3885","labels_url":"https://api.github.com/repos/aspnet/Mvc/issues/3885/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/Mvc/issues/3885/comments","events_url":"https://api.github.com/repos/aspnet/Mvc/issues/3885/events","html_url":"https://github.com/aspnet/Mvc/pull/3885","id":125486346,"number":3885,"title":"Fix #3501 - Issues with Flush","user":{"login":"rynowak","id":1430011,"avatar_url":"https://avatars.githubusercontent.com/u/1430011?v=3","gravatar_id":"","url":"https://api.github.com/users/rynowak","html_url":"https://github.com/rynowak","followers_url":"https://api.github.com/users/rynowak/followers","following_url":"https://api.github.com/users/rynowak/following{/other_user}","gists_url":"https://api.github.com/users/rynowak/gists{/gist_id}","starred_url":"https://api.github.com/users/rynowak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rynowak/subscriptions","organizations_url":"https://api.github.com/users/rynowak/orgs","repos_url":"https://api.github.com/users/rynowak/repos","events_url":"https://api.github.com/users/rynowak/events{/privacy}","received_events_url":"https://api.github.com/users/rynowak/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/aspnet/Mvc/labels/cla-already-signed","name":"cla-already-signed","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-07T21:17:43Z","updated_at":"2016-01-07T21:17:51Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/aspnet/Mvc/pulls/3885","html_url":"https://github.com/aspnet/Mvc/pull/3885","diff_url":"https://github.com/aspnet/Mvc/pull/3885.diff","patch_url":"https://github.com/aspnet/Mvc/pull/3885.patch"},"body":"Calling Flush[Async]() on the writer will NOT flush the stream.\r\nCalling Flush[Async]() in Razor will flush both the writer and the stream.\r\n\r\nOur normal flow will be to flush the writer, but not the stream. This\r\navoids chunking, but allows us to do a WriteAsync on the stream as part of\r\nthe call to FlushAsync. This is done to avoid a synchronous write due to\r\nDispose calling Flush on the writer, which needs to call Write on the\r\nstream.\r\n\r\nSee issue for extensive background."},"comment":{"url":"https://api.github.com/repos/aspnet/Mvc/issues/comments/169807735","html_url":"https://github.com/aspnet/Mvc/pull/3885#issuecomment-169807735","issue_url":"https://api.github.com/repos/aspnet/Mvc/issues/3885","id":169807735,"user":{"login":"rynowak","id":1430011,"avatar_url":"https://avatars.githubusercontent.com/u/1430011?v=3","gravatar_id":"","url":"https://api.github.com/users/rynowak","html_url":"https://github.com/rynowak","followers_url":"https://api.github.com/users/rynowak/followers","following_url":"https://api.github.com/users/rynowak/following{/other_user}","gists_url":"https://api.github.com/users/rynowak/gists{/gist_id}","starred_url":"https://api.github.com/users/rynowak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rynowak/subscriptions","organizations_url":"https://api.github.com/users/rynowak/orgs","repos_url":"https://api.github.com/users/rynowak/repos","events_url":"https://api.github.com/users/rynowak/events{/privacy}","received_events_url":"https://api.github.com/users/rynowak/received_events","type":"User","site_admin":false},"created_at":"2016-01-07T21:17:51Z","updated_at":"2016-01-07T21:17:51Z","body":"/cc @pranavkm "}}