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

Fix network name is no longer available error #7889

Merged
merged 3 commits into from
Feb 7, 2024

Conversation

xoriole
Copy link
Contributor

@xoriole xoriole commented Feb 7, 2024

Fixes #7759

On Windows, calling self.transport.close() can raise a CancelledError. This is because the transport is still in the event loop's transport map, and the event loop will call the transport's connection_lost method, which will call self.close() again.
This time, the transport is None, so the method will return immediately.

@xoriole xoriole marked this pull request as ready for review February 7, 2024 08:05
@xoriole xoriole requested review from a team and egbertbouman and removed request for a team February 7, 2024 08:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

OSError: [WinError 64] The specified network name is no longer available
2 participants