]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-113538: Add asycio.Server.{close,abort}_clients (redo) (#116784)
authorPierre Ossman (ThinLinc team) <ossman@cendio.se>
Mon, 18 Mar 2024 20:15:53 +0000 (21:15 +0100)
committerGitHub <noreply@github.com>
Mon, 18 Mar 2024 20:15:53 +0000 (13:15 -0700)
commit415964417771946dcb7a163951913adf84644b6d
tree7c3d02dbe2970052516f2aee11dd5863caaba64f
parenta9c304cf020e2fa3ae78fd88359dfc808c9dd639
gh-113538: Add asycio.Server.{close,abort}_clients (redo) (#116784)

These give applications the option of more forcefully terminating client
connections for asyncio servers. Useful when terminating a service and
there is limited time to wait for clients to finish up their work.

This is a do-over with a test fix for gh-114432, which was reverted.
Doc/library/asyncio-eventloop.rst
Doc/whatsnew/3.13.rst
Lib/asyncio/base_events.py
Lib/asyncio/events.py
Lib/asyncio/proactor_events.py
Lib/asyncio/selector_events.py
Lib/test/test_asyncio/test_server.py
Misc/NEWS.d/next/Library/2024-01-22-15-50-58.gh-issue-113538.v2wrwg.rst [new file with mode: 0644]