Cloudflare dropping the websocket will drop the TCP connection on both sides. #3
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Cloudflare will occasionally drop the websocket even with our keepalives if we keep it open for too long. This causes the connection to be terminated on both sides even if we're actively using it.
In the event that either side doesn't drop the connection of the own volition, we should queue messages on either side and re-establish a websocket connection. This will be better once pooled connections are used as we can have a websocket drop and still have the other websockets to send data over, the others will just have to pick up the slack while we re-establish the connection on the dropped one.