-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
socket.send() raised exception #7
Comments
The weird thing is that problem goes away also in case if you put something like |
What a hell?! 😃 |
Idk honestly, but it feels like asyncio bug, "socket.send() raised exception" is the warning which, afaik, should never be encountered under normal circumstances. |
python/asyncio#248 |
🎉 |
Sometimes, when trying to write to closed socket there is no
ConnectionResetError
exception, but some message to console "socket.send() raised exception" and program continue to execute as nothing happens. I don't understand the nature of this issue, but I saw same problem in stackoverflow questions. Here is code to reproduce, and this work on 3.4.2, 3.4.3 and 3.5.0 on my ubuntu 14.04:If we put
yield
betweenwriter.write(b"-" * data_size)
andyield from writer.drain()
then problem go away, but we can't use yield in 3.5.0 with coroutines.What to do:
yield from asyncio.sleep(0)
The text was updated successfully, but these errors were encountered: