Repository navigation
gh-156784: unignore error port unreachable in proactor #156788
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
Merged
kumaraditya303
merged 18 commits into
python:main
from
graingert:unignore-error-port-unreachable-in-proactor
Oct 20, 2026
Merged
Changes from 1 commit
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
3006d6e
fix proactor error hang
graingert eb09595
gh-127057: Re-arm proactor datagram read loop after a recoverable OSE…
graingert 8a50451
Merge branches 'fix-proactor-udp-connreset' and 'fix-proactor-error-h…
graingert f1c27aa
unignore error port unreachable in proactor
graingert 60187dd
Merge branch 'main' into fix-proactor-error-hang
graingert d57cb23
fix DatagramTransport when errror_recieved calls sendto
graingert bb80478
Merge branch 'main' of github.com:python/cpython into fix-proactor-er…
graingert 99dd5a1
Merge branch 'fix-proactor-error-hang' into unignore-error-port-unrea…
graingert bad71a2
Merge branch 'main' of github.com:python/cpython into unignore-error-…
graingert 5c71eb7
Apply suggestion from @graingert
graingert 08e2a39
remove test_datagram_write_error_resumes_paused_protocol_from_callback
graingert b6eb862
Apply suggestion from @graingert
graingert 96e0119
Merge branch 'main' into unignore-error-port-unreachable-in-proactor
graingert 8dc75b4
Merge branch 'main' into unignore-error-port-unreachable-in-proactor
graingert d426aa2
Merge branch 'main' into unignore-error-port-unreachable-in-proactor
graingert 37f3e94
Merge branch 'main' into unignore-error-port-unreachable-in-proactor
graingert cccedb8
Merge branch 'main' into unignore-error-port-unreachable-in-proactor
graingert 74d7f75
shorten news
graingert File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
unignore error port unreachable in proactor
- Loading branch information
commit f1c27aa5d7835b7f084d2bf8d062d6006d1e8e1b
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
Misc/NEWS.d/next/Library/2026-09-01-00-00-00.gh-issue-156784.8gvtt4.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| Fix :class:`asyncio.ProactorEventLoop` UDP transports and sockets so | ||
| that ``ERROR_PORT_UNREACHABLE``/``WSAECONNRESET`` (reported when the | ||
| same socket was previously used to send to an address that isn't | ||
| listening) is surfaced as a :exc:`ConnectionResetError` instead of | ||
| being silently swallowed. Datagram transports now deliver it to the | ||
| protocol via :meth:`~asyncio.DatagramProtocol.error_received` and | ||
| re-arm the read loop, and :meth:`~asyncio.loop.sock_recvfrom` / | ||
|
graingert marked this conversation as resolved.
Outdated
|
||
| :meth:`~asyncio.loop.sock_recvfrom_into` now raise it, matching the | ||
| behaviour :class:`asyncio.SelectorEventLoop` already had. This | ||
| corrects the fix applied in gh-91227, which papered over the issue by | ||
| discarding the error. | ||
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.