FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-156784: unignore error port unreachable in proactor by graingert · Pull Request #156788 · python/cpython · GitHub

Repository navigation

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 Aug 31, 2026
eb09595
gh-127057: Re-arm proactor datagram read loop after a recoverable OSE…
graingert Aug 31, 2026
8a50451
Merge branches 'fix-proactor-udp-connreset' and 'fix-proactor-error-h…
graingert Sep 1, 2026
f1c27aa
unignore error port unreachable in proactor
graingert Sep 1, 2026
60187dd
Merge branch 'main' into fix-proactor-error-hang
graingert Sep 4, 2026
d57cb23
fix DatagramTransport when errror_recieved calls sendto
graingert Sep 4, 2026
bb80478
Merge branch 'main' of github.com:python/cpython into fix-proactor-er…
graingert Sep 5, 2026
99dd5a1
Merge branch 'fix-proactor-error-hang' into unignore-error-port-unrea…
graingert Sep 5, 2026
bad71a2
Merge branch 'main' of github.com:python/cpython into unignore-error-…
graingert Sep 16, 2026
5c71eb7
Apply suggestion from @graingert
graingert Sep 16, 2026
08e2a39
remove test_datagram_write_error_resumes_paused_protocol_from_callback
graingert Sep 16, 2026
b6eb862
Apply suggestion from @graingert
graingert Sep 16, 2026
96e0119
Merge branch 'main' into unignore-error-port-unreachable-in-proactor
graingert Sep 18, 2026
8dc75b4
Merge branch 'main' into unignore-error-port-unreachable-in-proactor
graingert Sep 30, 2026
d426aa2
Merge branch 'main' into unignore-error-port-unreachable-in-proactor
graingert Oct 5, 2026
37f3e94
Merge branch 'main' into unignore-error-port-unreachable-in-proactor
graingert Oct 7, 2026
cccedb8
Merge branch 'main' into unignore-error-port-unreachable-in-proactor
graingert Oct 19, 2026
74d7f75
shorten news
graingert Oct 19, 2026
File filter

Filter by extension

Filter by extension .py  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
Prev Previous commit
Next Next commit
remove test_datagram_write_error_resumes_paused_protocol_from_callback
  • Loading branch information
graingert committed Sep 16, 2026
commit 08e2a395cdd31ec4ebee14d78793586518f91565
26 changes: 6 additions & 20 deletions Lib/test/test_asyncio/test_events.py
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
Expand Up @@ -1601,7 +1601,7 @@ def create_socket():
transport_1.close()
transport_2.close()

def _test_datagram_write_error_resumes_paused_protocol(self, first, second):
def test_datagram_write_error_resumes_paused_protocol(self):
# See https://github.com/python/cpython/issues/156698: a
# datagram write error must not strand data left in the write
# buffer, nor leave a paused protocol paused forever.
Expand Down Expand Up @@ -1637,11 +1637,11 @@ def error_received(self, exc):
# anything is left in the write buffer.
transport.set_write_buffer_limits(0)

# The first sendto() may arm an in-flight write, so the second
# one can end up queued behind it; queuing is what trips
# pause_writing() at a high water mark of 0.
transport.sendto(first, addr)
transport.sendto(second, addr)
# The oversized datagram fails while it is in flight, and the
# normal datagram behind it is left queued -- queuing is also
# what trips pause_writing() at a high water mark of 0.
transport.sendto(b'\x00' * 70000, addr)
transport.sendto(b'queued', addr)

loop.run_until_complete(
asyncio.wait_for(protocol.error_received_event,
Expand All @@ -1661,20 +1661,6 @@ def error_received(self, exc):
transport.close()
test_utils.run_briefly(loop)

def test_datagram_write_error_resumes_paused_protocol_in_flight(self):
# oversized datagram fails while in flight; a normal datagram
# queued right behind it must not be stranded.
oversized = b'\x00' * 70000
self._test_datagram_write_error_resumes_paused_protocol(
oversized, b'queued')

def test_datagram_write_error_resumes_paused_protocol_from_callback(self):
# oversized datagram fails once it reaches the front of the
# buffer; the protocol must not stay paused forever.
oversized = b'\x00' * 70000
self._test_datagram_write_error_resumes_paused_protocol(
b'ok', oversized)

def test_datagram_write_error_reentrant_sendto(self):
# See https://github.com/python/cpython/issues/156698: an
# error_received() callback that sends more data synchronously
Expand Down
Loading

Back | FazBrowse Home | New Git URL