-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Open
Labels
area-networkingIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractionsIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions
Description
Is there an existing issue for this?
- I have searched the existing issues
Describe the bug
When Ctrl C event fired blazor server shutdown connections, but clients can reconnect and server will shutdown by timeout.
Expected Behavior
Server doesn't accept any connections while shutdown, and will gracefully exit
Steps To Reproduce
Create empty blazor web app, set to Routes - server side rendering, then connect from browser and try to shutdown server throw Ctrl-C
Exceptions (if any)
No response
.NET Version
9
Anything else?
u can fix this bug with a middleware which will check "IsTerminated" for example, but it doesn't look like a good solution.
lander1337 and po1nttpo1ntt
Metadata
Metadata
Assignees
Labels
area-networkingIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractionsIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions