mirror of
https://github.com/moghtech/komodo.git
synced 2026-07-11 04:22:47 -05:00
[PR #1486] [MERGED] Send keepalive pings on user websockets to survive idle proxy timeouts #24827
Reference in New Issue
Block a user
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?
📋 Pull Request Information
Original PR: https://github.com/moghtech/komodo/pull/1486
Author: @Dougley
Created: 6/18/2026
Status: ✅ Merged
Merged: 6/20/2026
Merged by: @mbecker20
Base:
2.3.0← Head:ws-keepalive-pings📝 Commits (1)
6275d32send keepalive pings on user websockets to survive idle proxy timeouts📊 Changes
3 files changed (+31 additions, -2 deletions)
View changed files
📝
bin/core/src/api/ws/mod.rs(+3 -0)📝
bin/core/src/api/ws/terminal.rs(+17 -1)📝
bin/core/src/api/ws/update.rs(+11 -1)📄 Description
Cloudflare closes TCP sockets that go quiet, and our two user-facing sockets
/ws/updateand/ws/terminal, send nothing while idle. The socket sits there until the proxy reaps it and the UI falls back to its reconnect loop.This PR makes the server send a WebSocket Ping every 30s on both endpoints.
(Core<->Periphery connections already ping every 5s. This only touches the two browser-facing endpoints.)
Files
bin/core/src/api/ws/mod.rs- sharedWS_KEEP_ALIVE_INTERVAL(30s)bin/core/src/api/ws/update.rs- ping in the update send loopbin/core/src/api/ws/terminal.rs- ping in the terminal forward loop🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.