{"action":"closed","issue":{"url":"https://api.github.com/repos/python/asyncio/issues/475","repository_url":"https://api.github.com/repos/python/asyncio","labels_url":"https://api.github.com/repos/python/asyncio/issues/475/labels{/name}","comments_url":"https://api.github.com/repos/python/asyncio/issues/475/comments","events_url":"https://api.github.com/repos/python/asyncio/issues/475/events","html_url":"https://github.com/python/asyncio/issues/475","id":195323506,"number":475,"title":"StreamReader read with an exception '..incoming data'","user":{"login":"dpineiden","id":225633,"avatar_url":"https://avatars.githubusercontent.com/u/225633?v=3","gravatar_id":"","url":"https://api.github.com/users/dpineiden","html_url":"https://github.com/dpineiden","followers_url":"https://api.github.com/users/dpineiden/followers","following_url":"https://api.github.com/users/dpineiden/following{/other_user}","gists_url":"https://api.github.com/users/dpineiden/gists{/gist_id}","starred_url":"https://api.github.com/users/dpineiden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dpineiden/subscriptions","organizations_url":"https://api.github.com/users/dpineiden/orgs","repos_url":"https://api.github.com/users/dpineiden/repos","events_url":"https://api.github.com/users/dpineiden/events{/privacy}","received_events_url":"https://api.github.com/users/dpineiden/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-13T17:55:33Z","updated_at":"2016-12-26T17:25:49Z","closed_at":"2016-12-26T17:25:49Z","body":"Hello\r\nI'm implementing a server with in/out data and using the start_unix_server coroutine. It's give correctly the reader and writer. \r\nI'm using the reader with\r\n`\r\nawait reader.read(n=bs)\r\n`\r\nIn a method who read a data stream.\r\nIn general the system works fine, but raise this exception:\r\n\r\n\"RuntimeError: read() called while another coroutine is already waiting for incoming data\"\r\n\r\nmy project is: https://gitlab.com/pineiden/gus/blob/master/gnc_socket.py\r\n\r\nOn documentation, there are no advise about how to use read() correctly, so i used like a normal coroutine.\r\n\r\nSo, the question is about how to use that Streamreader and why it raise the exception.\r\n\r\nThanks!\r\n\r\nPD: To test, run test2_server.py, and test_client.py"}}
{"actor":{"display_login":"gvanrossum"}}