mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Revert "gh-113538: Add asycio.Server.{close,abort}_clients (#114432)"
Reason: The new test doesn't always pass:
https://github.com/python/cpython/pull/116423#issuecomment-1989425489
This reverts commit 1d0d49a7e8
.
This commit is contained in:
parent
2b67fc57f6
commit
ba13215eb1
8 changed files with 20 additions and 152 deletions
|
@ -63,7 +63,7 @@ class _ProactorBasePipeTransport(transports._FlowControlMixin,
|
|||
self._called_connection_lost = False
|
||||
self._eof_written = False
|
||||
if self._server is not None:
|
||||
self._server._attach(self)
|
||||
self._server._attach()
|
||||
self._loop.call_soon(self._protocol.connection_made, self)
|
||||
if waiter is not None:
|
||||
# only wake up the waiter when connection_made() has been called
|
||||
|
@ -167,7 +167,7 @@ class _ProactorBasePipeTransport(transports._FlowControlMixin,
|
|||
self._sock = None
|
||||
server = self._server
|
||||
if server is not None:
|
||||
server._detach(self)
|
||||
server._detach()
|
||||
self._server = None
|
||||
self._called_connection_lost = True
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue