{"action":"created","issue":{"url":"https://api.github.com/repos/aio-libs/aiohttp/issues/2687","repository_url":"https://api.github.com/repos/aio-libs/aiohttp","labels_url":"https://api.github.com/repos/aio-libs/aiohttp/issues/2687/labels{/name}","comments_url":"https://api.github.com/repos/aio-libs/aiohttp/issues/2687/comments","events_url":"https://api.github.com/repos/aio-libs/aiohttp/issues/2687/events","html_url":"https://github.com/aio-libs/aiohttp/issues/2687","id":291507028,"number":2687,"title":"Intermittent 502 proxy errors when running behind Apache","user":{"login":"panovitch","id":25590212,"avatar_url":"https://avatars2.githubusercontent.com/u/25590212?v=4","gravatar_id":"","url":"https://api.github.com/users/panovitch","html_url":"https://github.com/panovitch","followers_url":"https://api.github.com/users/panovitch/followers","following_url":"https://api.github.com/users/panovitch/following{/other_user}","gists_url":"https://api.github.com/users/panovitch/gists{/gist_id}","starred_url":"https://api.github.com/users/panovitch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/panovitch/subscriptions","organizations_url":"https://api.github.com/users/panovitch/orgs","repos_url":"https://api.github.com/users/panovitch/repos","events_url":"https://api.github.com/users/panovitch/events{/privacy}","received_events_url":"https://api.github.com/users/panovitch/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2018-01-25T09:44:05Z","updated_at":"2018-04-07T06:41:21Z","closed_at":null,"author_association":"NONE","body":"Hi there! Was wondering if you have some insight on the following problem:\r\n\r\n## Long story short\r\n\r\nWe are running an aiohttp app behind an Apache proxy. Around 20% of requests to the app cause Apache to return 502 Proxy Error. \r\n\r\nThese happen with requests to all endpoints of the server, and there seems to be no pattern to errors of any kind. The proxy error is returned immediately upon request.\r\nOther servers/apps (built on other frameworks, for example, tornado) run behind the same Apache proxy and do not show the same behavior.\r\n\r\nThe example of Apache logs:\r\n```\r\n[Tue Jan 23 12:38:51.050529 2018] [proxy_http:error] [pid <pid>:tid <tid>] (20014)Internal error (specific information not available): [client <IP address>] AH01102: error reading status line from remote server <hostname>\r\n```\r\n\r\nFull error response example:\r\n```\r\nHTTP/1.1 502 Proxy Error\r\nConnection: Keep-Alive\r\nContent-Length: 502\r\nContent-Type: text/html; charset=iso-8859-1\r\nDate: Tue, 23 Jan 2018 13:47:29 GMT\r\nKeep-Alive: timeout=15, max=100\r\nServer: Apache/2.4.18 (Ubuntu)\r\n\r\n502 Proxy Error\r\nThe proxy server received an invalid response from an upstream server.\r\nThe proxy server could not handle the request.\r\nReason: Error reading from remote server\r\n```\r\n\r\n## Your environment\r\naiohttp==2.3.9\r\npython 3.6.3\r\nApache 2.4.18\r\n"},"comment":{"url":"https://api.github.com/repos/aio-libs/aiohttp/issues/comments/379436829","html_url":"https://github.com/aio-libs/aiohttp/issues/2687#issuecomment-379436829","issue_url":"https://api.github.com/repos/aio-libs/aiohttp/issues/2687","id":379436829,"user":{"login":"pfreixes","id":1226121,"avatar_url":"https://avatars0.githubusercontent.com/u/1226121?v=4","gravatar_id":"","url":"https://api.github.com/users/pfreixes","html_url":"https://github.com/pfreixes","followers_url":"https://api.github.com/users/pfreixes/followers","following_url":"https://api.github.com/users/pfreixes/following{/other_user}","gists_url":"https://api.github.com/users/pfreixes/gists{/gist_id}","starred_url":"https://api.github.com/users/pfreixes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pfreixes/subscriptions","organizations_url":"https://api.github.com/users/pfreixes/orgs","repos_url":"https://api.github.com/users/pfreixes/repos","events_url":"https://api.github.com/users/pfreixes/events{/privacy}","received_events_url":"https://api.github.com/users/pfreixes/received_events","type":"User","site_admin":false},"created_at":"2018-04-07T06:41:21Z","updated_at":"2018-04-07T06:41:21Z","author_association":"CONTRIBUTOR","body":"@panovitch do you have the chance to test if the error is reproducible with Aiohttp 3.x?\r\n\r\nRegarding the `disablereuse=on` you are forcing to open a TCP connection at each time. is this stack running in local or are separated pieces within a network?"}}
{"actor":{"display_login":"pfreixes"}}