fix(remoteingress-core): improve tunnel liveness handling and enable TCP keepalive for accepted client sockets

This commit is contained in:
2026-03-16 17:39:25 +00:00
parent 1d59a48648
commit f8a0171ef3
7 changed files with 45 additions and 6 deletions

View File

@@ -726,8 +726,9 @@ async fn handle_edge_connection(
_ = ping_ticker.tick() => {
let ping_frame = encode_frame(0, FRAME_PING, &[]);
if frame_writer_tx.try_send(ping_frame).is_err() {
log::warn!("Failed to send PING to edge {}, writer channel full/closed", edge_id);
break;
// Control channel full — skip this PING cycle.
// The 45s liveness timeout gives margin for the channel to drain.
log::warn!("PING send to edge {} failed, control channel full — skipping", edge_id);
}
log::trace!("Sent PING to edge {}", edge_id);
}