gh-103607: Fixing pause_reading called in connection made is ignored#17425
gh-103607: Fixing pause_reading called in connection made is ignored#17425kumaraditya303 merged 14 commits intopython:mainfrom
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. |
asvetlov
left a comment
There was a problem hiding this comment.
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 |
gvanrossum
left a comment
There was a problem hiding this comment.
Good work. I would like to see one more test. Also, @kumaraditya303 do you have any comments?
|
I'll review this by tomorrow. |
kumaraditya303
left a comment
There was a problem hiding this comment.
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. |
|
@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