You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Different versions of Uvicorn can affect whether request.is_disconnected() in FastAPI executes correctly
#2608
When I use Uvicorn version 0.34.0, the program does not enter the req.is_disconnected() check and never reaches the break statement. However, when I downgrade Uvicorn to version 0.29.0, this issue no longer occurs.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
My program is as follows:
When I use Uvicorn version 0.34.0, the program does not enter the
req.is_disconnected()check and never reaches thebreakstatement. However, when I downgrade Uvicorn to version 0.29.0, this issue no longer occurs.All reactions