GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — gh-127057: Re-arm proactor datagram read loop after a recoverable OSError by graingert · Pull Request #156726 · python/cpython

Conversation

@graingert

@graingert graingert commented Aug 31, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor
  • Issue: asyncio proactor udp transport stops responding after send to port that isn't listening due to ConnectionResetError from WSARecvFrom #127057

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@bedevere-app bedevere-app Bot mentioned this pull request Aug 31, 2026
asyncio proactor udp transport stops responding after send to port that isn't listening due to ConnectionResetError from WSARecvFrom #127057
Closed
@graingert graingert changed the title gh-127057: Re-arm proactor datagram read loop after a recoverable OSE… gh-127057: Re-arm proactor datagram read loop after a recoverable OSError Aug 31, 2026
@graingert
graingert marked this pull request as ready for review August 31, 2026 17:20
@graingert
graingert requested review from 1st1, asvetlov, kumaraditya303 and willingc as code owners August 31, 2026 17:20
@bedevere-app bedevere-app Bot added the awaiting review label Aug 31, 2026
@graingert graingert added needs backport to 3.13 only security fixes needs backport to 3.14 bugs and security fixes needs backport to 3.15 bugs and security fixes labels Sep 1, 2026
@graingert
pythongh-127057: Re-arm proactor datagram read loop after a recoverab…
eb09595
…le OSError
@graingert
graingert force-pushed the fix-proactor-udp-connreset branch from e45ba5a to eb09595 Compare September 1, 2026 16:43
@graingert graingert mentioned this pull request Sep 1, 2026
gh-156784: unignore error port unreachable in proactor #156788
Merged
kumaraditya303
kumaraditya303 reviewed Sep 5, 2026
View reviewed changes
Comment thread Lib/test/test_asyncio/test_events.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

kumaraditya303
kumaraditya303 reviewed Sep 5, 2026
View reviewed changes
Comment thread Lib/test/test_asyncio/test_events.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

kumaraditya303
kumaraditya303 reviewed Sep 5, 2026
View reviewed changes
Comment thread Misc/NEWS.d/next/Library/2026-08-31-00-00-00.gh-issue-127057.N9yg62.rst Resolved

Uh oh!

There was an error while loading. Please reload this page.

@kumaraditya303 kumaraditya303 added the topic-asyncio label Sep 5, 2026
graingert added 2 commits September 5, 2026 10:59
@graingert
respond to code review comments
ca2ee21
@graingert
Merge branch 'main' into fix-proactor-udp-connreset
a770a66
@graingert

graingert commented Sep 5, 2026

Copy link
Copy Markdown
Contributor Author

@kumaraditya303 thanks for the review!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

kumaraditya303
kumaraditya303 reviewed Sep 5, 2026
View reviewed changes
Comment thread Lib/asyncio/proactor_events.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

graingert
graingert commented Sep 5, 2026
View reviewed changes
Comment thread Lib/asyncio/proactor_events.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

graingert and others added 2 commits September 5, 2026 11:02
@graingert
Apply suggestion from @graingert
77502d2
@graingert @kumaraditya303
Update Lib/asyncio/proactor_events.py
f2afd28
Co-authored-by: Kumar Aditya <[email protected]>
kumaraditya303
kumaraditya303 reviewed Sep 5, 2026
View reviewed changes
Comment thread Lib/asyncio/proactor_events.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

graingert
graingert commented Sep 5, 2026
View reviewed changes
Comment thread Lib/asyncio/proactor_events.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

@graingert
Apply suggestion from @graingert
9afc04b
@graingert graingert closed this Sep 5, 2026
@graingert graingert reopened this Sep 5, 2026
@graingert
only retry known recoverable errors
ad1e9be
kumaraditya303
kumaraditya303 approved these changes Sep 5, 2026
View reviewed changes
@bedevere-app bedevere-app Bot added awaiting merge and removed awaiting review labels Sep 5, 2026
@kumaraditya303
kumaraditya303 enabled auto-merge (squash) September 5, 2026 10:50
@kumaraditya303
kumaraditya303 merged commit 0ea2971 into python:main Sep 5, 2026
55 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@miss-islington-app

miss-islington-app Bot commented Sep 5, 2026

Copy link
Copy Markdown

Thanks @graingert for the PR, and @kumaraditya303 for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14, 3.15.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bedevere-app bedevere-app Bot removed the awaiting merge label Sep 5, 2026
@bedevere-app

bedevere-app Bot commented Sep 5, 2026

Copy link
Copy Markdown

GH-156976 is a backport of this pull request to the 3.15 branch.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bedevere-app bedevere-app Bot removed the needs backport to 3.15 bugs and security fixes label Sep 5, 2026
@bedevere-app

bedevere-app Bot commented Sep 5, 2026

Copy link
Copy Markdown

GH-156977 is a backport of this pull request to the 3.14 branch.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bedevere-app bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Sep 5, 2026
@bedevere-app

bedevere-app Bot commented Sep 5, 2026

Copy link
Copy Markdown

GH-156978 is a backport of this pull request to the 3.13 branch.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bedevere-app bedevere-app Bot removed the needs backport to 3.13 only security fixes label Sep 5, 2026
kumaraditya303 pushed a commit that referenced this pull request Sep 5, 2026
@miss-islington @graingert
[3.14] gh-127057: reschedule proactor datagram read loop after Connec…
9e97d9f
…tionResetError (GH-156726) (#156977)

gh-127057: reschedule proactor datagram read loop after ConnectionResetError  (GH-156726)
(cherry picked from commit 0ea2971)

Co-authored-by: Thomas Grainger <[email protected]>
kumaraditya303 pushed a commit that referenced this pull request Sep 5, 2026
@miss-islington @graingert
[3.13] gh-127057: reschedule proactor datagram read loop after Connec…
ffa12f7
…tionResetError (GH-156726) (#156978)

gh-127057: reschedule proactor datagram read loop after ConnectionResetError  (GH-156726)
(cherry picked from commit 0ea2971)

Co-authored-by: Thomas Grainger <[email protected]>
hugovk pushed a commit that referenced this pull request Sep 5, 2026
@miss-islington @graingert
[3.15] gh-127057: reschedule proactor datagram read loop after Connec…
4387744
…tionResetError (GH-156726) (#156976)

gh-127057: reschedule proactor datagram read loop after ConnectionResetError  (GH-156726)
(cherry picked from commit 0ea2971)

Co-authored-by: Thomas Grainger <[email protected]>
clin1234 pushed a commit to clin1234/cpython that referenced this pull request Sep 12, 2026
@graingert @clin1234
pythongh-127057: reschedule proactor datagram read loop after Connect…
2150ba8
…ionResetError (python#156726)
@graingert
graingert deleted the fix-proactor-udp-connreset branch September 16, 2026 10:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@kumaraditya303 kumaraditya303 kumaraditya303 approved these changes
@1st1 1st1 Awaiting requested review from 1st1 1st1 is a code owner
@asvetlov asvetlov Awaiting requested review from asvetlov asvetlov is a code owner
@willingc willingc Awaiting requested review from willingc willingc is a code owner

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

topic-asyncio

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@graingert @kumaraditya303
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.