FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

GH-79033: docs: Minor improvement to asyncio.Server.wait_closed() by Dreamsorcerer · Pull Request #111260 · python/cpython · GitHub

Repository navigation

GH-79033: docs: Minor improvement to asyncio.Server.wait_closed() - #111260

Closed
Dreamsorcerer wants to merge 1 commit into
python:mainfrom
Dreamsorcerer:patch-8
Closed

Dreamsorcerer wants to merge 1 commit into
python:mainfrom
Dreamsorcerer:patch-8

Conversation

Dreamsorcerer commented Oct 24, 2023 •
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Contributor

@gvanrossum Just a small followup from #98582.

In aiohttp, for some reason it was originally written as calling wait_closed() before cancelling the open connections. So, from that wording in the Python documentation I always assumed that it was waiting for the sockets to stop listening, rather than waiting for the connections to be closed. Clearly this was wrong, and it actually did nothing, and aiohttp's shutdown should have been broken long ago.

In particular, the close() method says 'The sockets that represent existing incoming client connections are left open.'.
So, saying that it waits for close() to complete, which itself says connections are left open was a little confusing.


📚 Documentation preview 📚: https://cpython-previews--111260.org.readthedocs.build/

bedevere-app Bot added awaiting review docs Documentation in the Doc dir skip news labels Oct 24, 2023
AlexWaygood changed the title docs: Minor improvement to asyncio.Server.wait_closed() GH-79033: docs: Minor improvement to asyncio.Server.wait_closed() Oct 24, 2023

gvanrossum left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

This phrasing is fine, and we should merge it.

Note, however, that there's another chapter to the wait_closed litany:
#79033 (comment)

Copy link
Copy Markdown
Contributor Author

Superseded by #111336.

Dreamsorcerer deleted the patch-8 branch October 26, 2023 19:25
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting merge docs Documentation in the Doc dir skip news

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL