Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

gh-113538: Allow client connections to be closed #114432

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
Mar 11, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Improve some comments
One could be made clearar, and the other is probably superfluous.
  • Loading branch information
CendioOssman committed Feb 27, 2024
commit 831619942e9619c270ddb65d7e55ed158e5b064e
5 changes: 2 additions & 3 deletions 5 Lib/asyncio/base_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,8 @@ def __init__(self, loop, sockets, protocol_factory, ssl_context, backlog,
ssl_handshake_timeout, ssl_shutdown_timeout=None):
self._loop = loop
self._sockets = sockets
# Weak references so abandoned transports can be detected
# Weak references so we don't break Transport's ability to
# detect abandoned transports
self._clients = weakref.WeakSet()
self._waiters = []
self._protocol_factory = protocol_factory
Expand All @@ -296,8 +297,6 @@ def _attach(self, transport):
self._clients.add(transport)

def _detach(self, transport):
# Note that 'transport' may already be missing from
# self._clients if it has been garbage collected
self._clients.discard(transport)
if len(self._clients) == 0 and self._sockets is None:
self._wakeup()
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.