mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
gh-113538: Add asycio.Server.{close,abort}_clients (#114432)
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 commit is contained in:
parent
872c0714fc
commit
1d0d49a7e8
8 changed files with 152 additions and 20 deletions
|
@ -270,6 +270,11 @@ asyncio
|
|||
the buffer size.
|
||||
(Contributed by Jamie Phan in :gh:`115199`.)
|
||||
|
||||
* Add :meth:`asyncio.Server.close_clients` and
|
||||
:meth:`asyncio.Server.abort_clients` methods which allow to more
|
||||
forcefully close an asyncio server.
|
||||
(Contributed by Pierre Ossman in :gh:`113538`.)
|
||||
|
||||
base64
|
||||
---
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue