mirror of
https://github.com/python/cpython.git
synced 2025-08-30 05:35:08 +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
|
@ -791,7 +791,7 @@ class _SelectorTransport(transports._FlowControlMixin,
|
|||
self._paused = False # Set when pause_reading() called
|
||||
|
||||
if self._server is not None:
|
||||
self._server._attach(self)
|
||||
self._server._attach()
|
||||
loop._transports[self._sock_fd] = self
|
||||
|
||||
def __repr__(self):
|
||||
|
@ -868,8 +868,6 @@ class _SelectorTransport(transports._FlowControlMixin,
|
|||
if self._sock is not None:
|
||||
_warn(f"unclosed transport {self!r}", ResourceWarning, source=self)
|
||||
self._sock.close()
|
||||
if self._server is not None:
|
||||
self._server._detach(self)
|
||||
|
||||
def _fatal_error(self, exc, message='Fatal error on transport'):
|
||||
# Should be called from exception handler only.
|
||||
|
@ -908,7 +906,7 @@ class _SelectorTransport(transports._FlowControlMixin,
|
|||
self._loop = None
|
||||
server = self._server
|
||||
if server is not None:
|
||||
server._detach(self)
|
||||
server._detach()
|
||||
self._server = None
|
||||
|
||||
def get_write_buffer_size(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue