Skip to content
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

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

Closed
wants to merge 1 commit into from

Conversation

geraldog
Copy link

@geraldog geraldog commented Jan 21, 2024

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.

Copy link

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

Click the button to sign:
CLA not signed

@bedevere-app
Copy link

bedevere-app bot commented Jan 21, 2024

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
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
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants