Skip to content
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

gh-95051: ensure that timeouts scheduled with asyncio.Timeout that have already expired are deliverered promptly #95109

Merged
merged 9 commits into from Jul 24, 2022

Conversation

graingert
Copy link
Contributor

@graingert graingert commented Jul 21, 2022

@graingert graingert changed the title gh-95051: handle timeouts.timeout(0) and timeouts.timeout(-1) gh-95051: ensure that timeouts scheduled in the past with asyncio.Timeout are deliverered promptly Jul 21, 2022
Lib/asyncio/timeouts.py Outdated Show resolved Hide resolved
@graingert graingert changed the title gh-95051: ensure that timeouts scheduled in the past with asyncio.Timeout are deliverered promptly gh-95051: ensure that timeouts scheduled with asyncio.Timeout that have already expired are deliverered promptly Jul 21, 2022
@graingert graingert marked this pull request as ready for review Jul 22, 2022
@graingert graingert requested review from 1st1 and asvetlov as code owners Jul 22, 2022
…xA9r.rst

Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Copy link
Member

@gvanrossum gvanrossum left a comment

LG, just a nit, and maybe now that we're testing this behavior, it should be noted in the docs?

Lib/asyncio/timeouts.py Outdated Show resolved Hide resolved
graingert and others added 2 commits Jul 22, 2022
Co-authored-by: Guido van Rossum <gvanrossum@gmail.com>
@graingert graingert requested a review from gvanrossum Jul 23, 2022
@gvanrossum gvanrossum merged commit 0c6f898 into python:main Jul 24, 2022
14 checks passed
@miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Jul 24, 2022

Thanks @graingert for the PR, and @gvanrossum for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11.
🐍🍒🤖

@miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Jul 24, 2022

Sorry @graingert and @gvanrossum, I had trouble checking out the 3.11 backport branch.
Please backport using cherry_picker on command line.
cherry_picker 0c6f898005099be189ee65bcfda659f5fc13b802 3.11

@graingert graingert deleted the asyncio-timeout-0-0 branch Jul 24, 2022
@gvanrossum
Copy link
Member

@gvanrossum gvanrossum commented Jul 24, 2022

@graingert please backport manually and ask Pablo for a review.

@miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Jul 24, 2022

Thanks @graingert for the PR, and @gvanrossum for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11.
🐍🍒🤖

@bedevere-bot
Copy link

@bedevere-bot bedevere-bot commented Jul 24, 2022

GH-95216 is a backport of this pull request to the 3.11 branch.

@AlexWaygood
Copy link
Member

@AlexWaygood AlexWaygood commented Jul 24, 2022

@graingert please backport manually and ask Pablo for a review.

When @miss-islington's message is "I had trouble checking out the 3.X branch" (as opposed to "I couldn't create the backport due to a merge conflict"), just removing and re-adding the label is usually enough to fix it :)

@miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Jul 24, 2022

Thanks @graingert for the PR, and @gvanrossum for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11.
🐍🍒🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this issue Jul 24, 2022
… that have already expired are deliverered promptly (pythonGH-95109)

Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
(cherry picked from commit 0c6f898)

Co-authored-by: Thomas Grainger <tagrain@gmail.com>
@AlexWaygood
Copy link
Member

@AlexWaygood AlexWaygood commented Jul 24, 2022

GH-95216 is a backport of this pull request to the 3.11 branch.

@graingert, I already removed and re-added the label — this is the backport here

@graingert
Copy link
Contributor Author

@graingert graingert commented Jul 24, 2022

argh I saw the email notification and had a stale copy of the PR page open

@AlexWaygood
Copy link
Member

@AlexWaygood AlexWaygood commented Jul 24, 2022

argh I saw the email notification and had a stale copy of the PR page open

It's race conditions all the way down

@gvanrossum
Copy link
Member

@gvanrossum gvanrossum commented Jul 24, 2022

Maybe one of you can make the bot more user friendly?

@graingert
Copy link
Contributor Author

@graingert graingert commented Jul 24, 2022

It's race conditions all the way down

@AlexWaygood
Copy link
Member

@AlexWaygood AlexWaygood commented Jul 24, 2022

Maybe one of you can make the bot more user friendly?

It's been on my to-do list for a while.....

ambv pushed a commit that referenced this issue Jul 26, 2022
…have already expired are deliverered promptly (GH-95109) (GH-95216)

Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
(cherry picked from commit 0c6f898)

Co-authored-by: Thomas Grainger <tagrain@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants