{"action":"created","issue":{"url":"https://api.github.com/repos/benoitc/gunicorn/issues/840","labels_url":"https://api.github.com/repos/benoitc/gunicorn/issues/840/labels{/name}","comments_url":"https://api.github.com/repos/benoitc/gunicorn/issues/840/comments","events_url":"https://api.github.com/repos/benoitc/gunicorn/issues/840/events","html_url":"https://github.com/benoitc/gunicorn/issues/840","id":39453331,"number":840,"title":"POST fails when returning >13k response on Heroku","user":{"login":"erjiang","id":321497,"avatar_url":"https://avatars.githubusercontent.com/u/321497?v=3","gravatar_id":"","url":"https://api.github.com/users/erjiang","html_url":"https://github.com/erjiang","followers_url":"https://api.github.com/users/erjiang/followers","following_url":"https://api.github.com/users/erjiang/following{/other_user}","gists_url":"https://api.github.com/users/erjiang/gists{/gist_id}","starred_url":"https://api.github.com/users/erjiang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erjiang/subscriptions","organizations_url":"https://api.github.com/users/erjiang/orgs","repos_url":"https://api.github.com/users/erjiang/repos","events_url":"https://api.github.com/users/erjiang/events{/privacy}","received_events_url":"https://api.github.com/users/erjiang/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/benoitc/gunicorn/labels/Bug","name":"Bug","color":"e31c1c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2014-08-04T19:38:39Z","updated_at":"2015-09-06T23:54:23Z","closed_at":null,"body":"Hi, we hit this issue in production using Flask + Gunicorn + Heroku and couldn't find a cause or a workaround.\r\n\r\nFor one particular POST request with POST parameters, the request would fail with an H18 error (sock=backend) in Heroku's router indicating that the server closed the socket when it shouldn't have.\r\n\r\nWe started decreasing the response size of that failing endpoint until we narrowed it down to around the 13k mark. If we sent less than 13k, the response would always work. If we sent more than 13k, the response would almost always not work.\r\n\r\nCode to reproduce this is available at https://github.com/erjiang/gunicorn-issue - just deploy the repo to Heroku as is and follow the instructions in the README."},"comment":{"url":"https://api.github.com/repos/benoitc/gunicorn/issues/comments/138138145","html_url":"https://github.com/benoitc/gunicorn/issues/840#issuecomment-138138145","issue_url":"https://api.github.com/repos/benoitc/gunicorn/issues/840","id":138138145,"user":{"login":"maximkgn","id":3140740,"avatar_url":"https://avatars.githubusercontent.com/u/3140740?v=3","gravatar_id":"","url":"https://api.github.com/users/maximkgn","html_url":"https://github.com/maximkgn","followers_url":"https://api.github.com/users/maximkgn/followers","following_url":"https://api.github.com/users/maximkgn/following{/other_user}","gists_url":"https://api.github.com/users/maximkgn/gists{/gist_id}","starred_url":"https://api.github.com/users/maximkgn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maximkgn/subscriptions","organizations_url":"https://api.github.com/users/maximkgn/orgs","repos_url":"https://api.github.com/users/maximkgn/repos","events_url":"https://api.github.com/users/maximkgn/events{/privacy}","received_events_url":"https://api.github.com/users/maximkgn/received_events","type":"User","site_admin":false},"created_at":"2015-09-06T23:54:22Z","updated_at":"2015-09-06T23:54:22Z","body":"HI all,\r\nI am experiencing the same problem. Did any of you got the chance to examine this issue more thoroughly?\r\n@tilgovi @erjiang @benoitc \r\n\r\nCheers\r\nMaxim"}}