Cloudflare dropping the websocket will drop the TCP connection on both sides. #3

Open
opened 2024-01-19 10:52:12 +00:00 by tgpholly · 0 comments
Owner

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.

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.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: tgpholly/tcp-ws-proxy#3
No description provided.