-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
gh-103607: Fixing pause_reading called in connection made is ignored #17425
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
Conversation
added is_reading() for unix transports
This is an alternative solution to #4053. |
Thanks for your response, |
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
I have made the requested changes; please review again |
Thanks for making the requested changes! @asvetlov: please review the changes made to this pull request. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aha, I see the point.
pause_reading
belongs to ReadTransport
, _SelectorTransport
is used by _SelectorDatagramTransport
also.
I know, we have a little mess in transport inheritance currently; it should be fixed.
Perhaps the previous version was better; I'd like to clean up the inheritance before returning to the review of this PR anyway.
Sorry for misleading.
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work. I would like to see one more test. Also, @kumaraditya303 do you have any comments?
I'll review this by tomorrow. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a test for proactor event loop too.
add Proactor events tests
Thank you both for responding! |
I have made the requested changes; please review again |
Thanks for making the requested changes! @gvanrossum, @asvetlov: please review the changes made to this pull request. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
@kumaraditya303 Feel free to merge if you are happy now. |
Thanks @Itayazolay for the PR, and @kumaraditya303 for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11. |
…tion_made` in `asyncio`. (pythonGH-17425) (cherry picked from commit 78942ec) Co-authored-by: Itayazolay <itayazolay@gmail.com> Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
GH-103918 is a backport of this pull request to the 3.11 branch. |
…ction_made` in `asyncio`. (GH-17425) (#103918) gh-103607: Fix `pause_reading` to work when called from `connection_made` in `asyncio`. (GH-17425) (cherry picked from commit 78942ec) Co-authored-by: Itayazolay <itayazolay@gmail.com> Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
bpo-31821: Fixing pause_reading called in connection made is ignored
https://bugs.python.org/issue31821