{"action":"created","issue":{"url":"https://api.github.com/repos/containous/traefik/issues/560","repository_url":"https://api.github.com/repos/containous/traefik","labels_url":"https://api.github.com/repos/containous/traefik/issues/560/labels{/name}","comments_url":"https://api.github.com/repos/containous/traefik/issues/560/comments","events_url":"https://api.github.com/repos/containous/traefik/issues/560/events","html_url":"https://github.com/containous/traefik/issues/560","id":167378718,"number":560,"title":"Traefik stuck when used as frontend for a streaming API","user":{"login":"git-oca","id":10583590,"avatar_url":"https://avatars.githubusercontent.com/u/10583590?v=3","gravatar_id":"","url":"https://api.github.com/users/git-oca","html_url":"https://github.com/git-oca","followers_url":"https://api.github.com/users/git-oca/followers","following_url":"https://api.github.com/users/git-oca/following{/other_user}","gists_url":"https://api.github.com/users/git-oca/gists{/gist_id}","starred_url":"https://api.github.com/users/git-oca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/git-oca/subscriptions","organizations_url":"https://api.github.com/users/git-oca/orgs","repos_url":"https://api.github.com/users/git-oca/repos","events_url":"https://api.github.com/users/git-oca/events{/privacy}","received_events_url":"https://api.github.com/users/git-oca/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2016-07-25T14:24:01Z","updated_at":"2016-08-02T12:56:06Z","closed_at":null,"body":"Hi, I have  a service that streams potentially large responses, in a streaming fashion. \r\nWhen I put traefik (v1.0.1) in front of my service, the streaming API doesn't seems to reply anymore.\r\n\r\nMy real use case is to do streaming on a SolR server that may have very large result-set.\r\nbut this small service (Python/Flask) will help to reproduce the problem easily :\r\n\r\n```python\r\nfrom flask import Response\r\nfrom flask import Flask\r\napp = Flask(__name__)\r\n  \r\n@app.route('/numbers')\r\ndef generate_route():\r\n    def generate():\r\n        a = 0\r\n        while True :\r\n            yield(str(a) + \"\\n\")\r\n            a = a + 1\r\n    return Response(generate(), mimetype='text/plain')\r\n\r\nif __name__ == \"__main__\":\r\n    app.run(host='0.0.0.0', port=8080)\r\n```\r\n\r\nA call to this '/numbers' API will generate an infinite stream of numbers.\r\nThis command, while doing a broken pipe, will however still reply and print number 0 to 9 :\r\n\r\n> curl -s localhost:8080/numbers | head -n 10\r\n0\r\n1\r\n2\r\n3\r\n...\r\n\r\n\r\nWhen I'm using traefik as a reverse proxy to redirect call on port 80 to 8080, the '/numbers' API doesn't reply anymore.\r\n\r\n> curl -s localhost/numbers | head -n 10\r\n\r\n(no response here...)\r\n\r\nSo is there anything that can be done about that ?\r\nThanks \r\n\r\nOlivier\r\n\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/containous/traefik/issues/comments/236895403","html_url":"https://github.com/containous/traefik/issues/560#issuecomment-236895403","issue_url":"https://api.github.com/repos/containous/traefik/issues/560","id":236895403,"user":{"login":"git-oca","id":10583590,"avatar_url":"https://avatars.githubusercontent.com/u/10583590?v=3","gravatar_id":"","url":"https://api.github.com/users/git-oca","html_url":"https://github.com/git-oca","followers_url":"https://api.github.com/users/git-oca/followers","following_url":"https://api.github.com/users/git-oca/following{/other_user}","gists_url":"https://api.github.com/users/git-oca/gists{/gist_id}","starred_url":"https://api.github.com/users/git-oca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/git-oca/subscriptions","organizations_url":"https://api.github.com/users/git-oca/orgs","repos_url":"https://api.github.com/users/git-oca/repos","events_url":"https://api.github.com/users/git-oca/events{/privacy}","received_events_url":"https://api.github.com/users/git-oca/received_events","type":"User","site_admin":false},"created_at":"2016-08-02T12:56:06Z","updated_at":"2016-08-02T12:56:06Z","body":"I copied the binary traefik file to my container, did the test again and got the same result.\r\n\r\nroot@79ee253dd695:/oca# ./traefik version\r\nVersion:      2c411767def99b40706d6c6f8edeca4541e09814\r\nCodename:     reblochon\r\nGo version:   go1.6.2\r\nBuilt:        2016-08-02_10:39:47AM\r\nOS/Arch:      linux/amd64\r\n"}}
{"actor":{"display_login":"git-oca"}}