Skip to content

pythongh-109534: close transport if waiter is done - #114367

Closed
geraldog wants to merge 1 commit into
python:mainfrom
geraldog:enforce_transport_close
Closed

geraldog wants to merge 1 commit into
python:mainfrom
geraldog:enforce_transport_close

Conversation

@geraldog

@geraldog geraldog commented Jan 21, 2024 •

Copy link
Copy Markdown

I'm not able to reproduce #109534 anymore with this fix. Checking asyncio/sslproto.py it seems the waiter is only done on error or connection lost so this seems safe.

@ghost

ghost commented Jan 21, 2024

Copy link
Copy Markdown

The following commit authors need to sign the Contributor License Agreement:

Click the button to sign:
CLA not signed

@bedevere-app

bedevere-app Bot commented Jan 21, 2024

Copy link
Copy Markdown

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

@gvanrossum

Copy link
Copy Markdown
Member

Checking asyncio/sslproto.py it seems the waiter is only done on error or connection lost so this seems safe.

Are you sure about that? ISTM that the waiter is passed to _SelectorSocketTransport which sets the waiter's result after connection_made() was called. And note how many tests are failing in CI!

@geraldog

Copy link
Copy Markdown
Author

@gvanrossum actually being a RAW (Robert Anton WIlson) head I'm not sure of anything to be sure... but be kind with me and spare me some CI action - I just think I don't need to create the pull requests to annoy the maintainers to get the CI benefit while I chase this horrid bug.

But the code sure is failing to close the transport somewhere! I just don't know if it's python-code side or c-code side?

@geraldog geraldog closed this Jan 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

2 participants