{"action":"created","issue":{"url":"https://api.github.com/repos/aio-libs/aiohttp/issues/3178","repository_url":"https://api.github.com/repos/aio-libs/aiohttp","labels_url":"https://api.github.com/repos/aio-libs/aiohttp/issues/3178/labels{/name}","comments_url":"https://api.github.com/repos/aio-libs/aiohttp/issues/3178/comments","events_url":"https://api.github.com/repos/aio-libs/aiohttp/issues/3178/events","html_url":"https://github.com/aio-libs/aiohttp/issues/3178","id":348039046,"node_id":"MDU6SXNzdWUzNDgwMzkwNDY=","number":3178,"title":"ConnectionResetError being output in normal, expected situations","user":{"login":"scotloach","id":11753520,"node_id":"MDQ6VXNlcjExNzUzNTIw","avatar_url":"https://avatars2.githubusercontent.com/u/11753520?v=4","gravatar_id":"","url":"https://api.github.com/users/scotloach","html_url":"https://github.com/scotloach","followers_url":"https://api.github.com/users/scotloach/followers","following_url":"https://api.github.com/users/scotloach/following{/other_user}","gists_url":"https://api.github.com/users/scotloach/gists{/gist_id}","starred_url":"https://api.github.com/users/scotloach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scotloach/subscriptions","organizations_url":"https://api.github.com/users/scotloach/orgs","repos_url":"https://api.github.com/users/scotloach/repos","events_url":"https://api.github.com/users/scotloach/events{/privacy}","received_events_url":"https://api.github.com/users/scotloach/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-08-06T18:45:05Z","updated_at":"2018-08-08T13:01:28Z","closed_at":null,"author_association":"NONE","body":"## Long story short\r\n\r\nI am frequently seeing this message output from the aiohttp library.  \r\n\r\nTraceback (most recent call last):\r\n  File \"/usr/local/lib64/python3.6/site-packages/aiohttp/web_protocol.py\", line 398, in start\r\n    await resp.prepare(request)\r\n  File \"/usr/local/lib64/python3.6/site-packages/aiohttp/web_response.py\", line 300, in prepare\r\n    return await self._start(request)\r\n  File \"/usr/local/lib64/python3.6/site-packages/aiohttp/web_response.py\", line 605, in _start\r\n    return await super()._start(request)\r\n  File \"/usr/local/lib64/python3.6/site-packages/aiohttp/web_response.py\", line 367, in _start\r\n    await writer.write_headers(status_line, headers)\r\n  File \"/usr/local/lib64/python3.6/site-packages/aiohttp/http_writer.py\", line 100, in write_headers\r\n    self._write(buf)\r\n  File \"/usr/local/lib64/python3.6/site-packages/aiohttp/http_writer.py\", line 57, in _write\r\n    raise ConnectionResetError('Cannot write to closing transport')\r\nConnectionResetError: Cannot write to closing transport\r\n\r\n## Expected behaviour\r\n\r\nThe library should automatically recover itself internally, or throw an error where my application code can handle it with a retry.\r\n\r\n## Actual behaviour\r\n\r\nThis error comes out in my logs and causes error detection systems to trigger.\r\n\r\n## Steps to reproduce\r\n\r\nI don't fully understand how to reproduce it, but it happens frequently in my application that uses aiohttp as a client.  The library seems to recover from it.\r\n\r\n## Your environment\r\n\r\naiohttp (3.1.3) client on Fedora relesae 27, Python 3.6.4.\r\n     \r\n"},"comment":{"url":"https://api.github.com/repos/aio-libs/aiohttp/issues/comments/411396758","html_url":"https://github.com/aio-libs/aiohttp/issues/3178#issuecomment-411396758","issue_url":"https://api.github.com/repos/aio-libs/aiohttp/issues/3178","id":411396758,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMTM5Njc1OA==","user":{"login":"asvetlov","id":356399,"node_id":"MDQ6VXNlcjM1NjM5OQ==","avatar_url":"https://avatars0.githubusercontent.com/u/356399?v=4","gravatar_id":"","url":"https://api.github.com/users/asvetlov","html_url":"https://github.com/asvetlov","followers_url":"https://api.github.com/users/asvetlov/followers","following_url":"https://api.github.com/users/asvetlov/following{/other_user}","gists_url":"https://api.github.com/users/asvetlov/gists{/gist_id}","starred_url":"https://api.github.com/users/asvetlov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asvetlov/subscriptions","organizations_url":"https://api.github.com/users/asvetlov/orgs","repos_url":"https://api.github.com/users/asvetlov/repos","events_url":"https://api.github.com/users/asvetlov/events{/privacy}","received_events_url":"https://api.github.com/users/asvetlov/received_events","type":"User","site_admin":false},"created_at":"2018-08-08T13:01:28Z","updated_at":"2018-08-08T13:01:28Z","author_association":"MEMBER","body":"It is not.\r\n`aiohttp/web_response.py` from logs is used by server code only."}}
{"actor":{"display_login":"asvetlov"}}