Skip to content

[3.11] [3.12] GH-110894: Call loop exception handler for exceptions in client_connected_cb (GH-111601) (GH-111632) #111634

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 2 commits into from
Nov 4, 2023

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Nov 2, 2023

(cherry picked from commit 9aa8829)

Co-authored-by: Kumar Aditya [email protected]
Call loop exception handler for exceptions in client_connected_cb of asyncio.start_server so that applications can handle it..
(cherry picked from commit 229f44d)

… client_connected_cb (pythonGH-111601) (pythonGH-111632)

(cherry picked from commit 9aa8829)

Co-authored-by: Kumar Aditya <[email protected]>
Call loop exception handler for exceptions in `client_connected_cb` of `asyncio.start_server` so that applications can handle it..
(cherry picked from commit 229f44d)
Fix test_unhandled_exceptions() of test_asyncio.test_streams: break
explicitly a reference cycle.

Fix also StreamTests.tearDown(): the loop must not be closed
explicitly, but using set_event_loop() which takes care of shutting
down the executor with executor.shutdown(wait=True).
BaseEventLoop.close() calls executor.shutdown(wait=False).

(cherry picked from commit ac01e22)
@vstinner
Copy link
Member

vstinner commented Nov 4, 2023

I included my fix in this backport: commit ac01e22.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants