-
Notifications
You must be signed in to change notification settings - Fork 558
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
add_reader not functioning the same as asyncio version #97
Comments
Interesting. I think some code in asyncio needs to be fixed too :) |
Specifically, asyncio code expects that |
Cool! Well, that would totally explain it. You OK to copy this issue to CPython issues? |
Let me experiment with this a bit more to confirm that we need to fix anything in asyncio. I just did a cursory look. |
Rgr that. |
Fixed in master. Will be in the next release 0.9.0 soon |
0.9.0 is available now! |
PYTHONASYNCIODEBUG
in env?: yesI lifted a threaded controller from another project to use during testing.
The line
self.loop.add_reader(self._rsock, self._reader)
fails because uvloop'sadd_reader
expects the first argument to be a file descriptor whereasasyncio
allows a socket to be passed, in this case fromsocket.socketpair()
.I have since updated this piece of code to remove using a socket to kill the thread after testing is complete.
The text was updated successfully, but these errors were encountered: