Skip to content

Fix segfault in Python webservers#2943

Merged
texodus merged 2 commits intomasterfrom
fix-uvicorn-bug
Mar 9, 2025
Merged

Fix segfault in Python webservers#2943
texodus merged 2 commits intomasterfrom
fix-uvicorn-bug

Conversation

@texodus
Copy link
Member

@texodus texodus commented Mar 8, 2025

This PR fixes a regression in 3.4.0 which causes a panic during the View.on_update notification of a non-synchronous Client. I've updated the multi threading test to assert single and concurrent thread updates (the old tests dispatched on_update notifications to an already-closed event loop that drops errors ...), and I've added a local-loopback websocket client test which replicates the bug in 3.4.0 and passes in this PR.

@texodus texodus added the bug Concrete, reproducible bugs label Mar 8, 2025
@timkpaine
Copy link
Member

Should fix #2945 as well

@timkpaine timkpaine changed the title Fix segfault with uvicorn Fix segfault in Python webservers Mar 8, 2025
texodus added 2 commits March 8, 2025 17:07
Signed-off-by: Andrew Stein <steinlink@gmail.com>
Signed-off-by: Andrew Stein <steinlink@gmail.com>
@texodus texodus marked this pull request as ready for review March 9, 2025 04:09
@texodus texodus merged commit a450820 into master Mar 9, 2025
14 checks passed
@texodus texodus deleted the fix-uvicorn-bug branch March 9, 2025 04:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Concrete, reproducible bugs

Development

Successfully merging this pull request may close these issues.

2 participants