{"action":"created","issue":{"url":"https://api.github.com/repos/http-kit/http-kit/issues/90","repository_url":"https://api.github.com/repos/http-kit/http-kit","labels_url":"https://api.github.com/repos/http-kit/http-kit/issues/90/labels{/name}","comments_url":"https://api.github.com/repos/http-kit/http-kit/issues/90/comments","events_url":"https://api.github.com/repos/http-kit/http-kit/issues/90/events","html_url":"https://github.com/http-kit/http-kit/issues/90","id":22015740,"number":90,"title":"http-kit buffers whole response body from InputStream before sending to client","user":{"login":"eduardoejp","id":245700,"avatar_url":"https://avatars.githubusercontent.com/u/245700?v=3","gravatar_id":"","url":"https://api.github.com/users/eduardoejp","html_url":"https://github.com/eduardoejp","followers_url":"https://api.github.com/users/eduardoejp/followers","following_url":"https://api.github.com/users/eduardoejp/following{/other_user}","gists_url":"https://api.github.com/users/eduardoejp/gists{/gist_id}","starred_url":"https://api.github.com/users/eduardoejp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eduardoejp/subscriptions","organizations_url":"https://api.github.com/users/eduardoejp/orgs","repos_url":"https://api.github.com/users/eduardoejp/repos","events_url":"https://api.github.com/users/eduardoejp/events{/privacy}","received_events_url":"https://api.github.com/users/eduardoejp/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/http-kit/http-kit/labels/enhancement","name":"enhancement","color":"d4c5f9"},{"url":"https://api.github.com/repos/http-kit/http-kit/labels/server","name":"server","color":"006b75"}],"state":"open","locked":false,"assignee":{"login":"shenfeng","id":395472,"avatar_url":"https://avatars.githubusercontent.com/u/395472?v=3","gravatar_id":"","url":"https://api.github.com/users/shenfeng","html_url":"https://github.com/shenfeng","followers_url":"https://api.github.com/users/shenfeng/followers","following_url":"https://api.github.com/users/shenfeng/following{/other_user}","gists_url":"https://api.github.com/users/shenfeng/gists{/gist_id}","starred_url":"https://api.github.com/users/shenfeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shenfeng/subscriptions","organizations_url":"https://api.github.com/users/shenfeng/orgs","repos_url":"https://api.github.com/users/shenfeng/repos","events_url":"https://api.github.com/users/shenfeng/events{/privacy}","received_events_url":"https://api.github.com/users/shenfeng/received_events","type":"User","site_admin":false},"milestone":null,"comments":17,"created_at":"2013-11-03T06:38:41Z","updated_at":"2016-02-05T18:44:40Z","closed_at":null,"body":"If I'm using a PipedOutputStream to send data to a corresponding PipedInputStream, hoping for the client to download a large file that I'll be sending to it in small pieces, http-kit doesn't send anything until all the data has been written to the stream.\r\n\r\nThat creates 2 problems:\r\n1. If I send big files many times simultaneously, I can run out of memory.\r\n2. Having to wait until all data has been written to the stream introduces latency for big files."},"comment":{"url":"https://api.github.com/repos/http-kit/http-kit/issues/comments/180494184","html_url":"https://github.com/http-kit/http-kit/issues/90#issuecomment-180494184","issue_url":"https://api.github.com/repos/http-kit/http-kit/issues/90","id":180494184,"user":{"login":"bhurlow","id":1356376,"avatar_url":"https://avatars.githubusercontent.com/u/1356376?v=3","gravatar_id":"","url":"https://api.github.com/users/bhurlow","html_url":"https://github.com/bhurlow","followers_url":"https://api.github.com/users/bhurlow/followers","following_url":"https://api.github.com/users/bhurlow/following{/other_user}","gists_url":"https://api.github.com/users/bhurlow/gists{/gist_id}","starred_url":"https://api.github.com/users/bhurlow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhurlow/subscriptions","organizations_url":"https://api.github.com/users/bhurlow/orgs","repos_url":"https://api.github.com/users/bhurlow/repos","events_url":"https://api.github.com/users/bhurlow/events{/privacy}","received_events_url":"https://api.github.com/users/bhurlow/received_events","type":"User","site_admin":false},"created_at":"2016-02-05T18:44:39Z","updated_at":"2016-02-05T18:44:39Z","body":"Awesome!! @dgrnbrg thnx"}}