Understanding Starlette WebSocket and TCP Flow Control #2704
-
Hi, I am implementing a websocket server with FastAPI and ran into a thought of what happens when the client doesn't read or is slow to read but doesn't disconnect? I've read up briefly on tcp flow control and tried to find documentation for starlette's websocket but didn't find anything. Wondering if anyone can clear up or go into more detail. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You don't have to worry about that. You can assume that if things are not as expected then the bug is on the server. E.g. Uvicorn. |
Beta Was this translation helpful? Give feedback.
You don't have to worry about that.
I haven't heard of ASGI apps getting involved with flow control because that's the server's job to manage it.
You can assume that if things are not as expected then the bug is on the server. E.g. Uvicorn.