You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Parses the gateway URL, connects via TCP (plain) or TLS (mTLS)
141
+
- Enables TCP keepalive on the gateway socket
141
142
- Sends a raw HTTP CONNECT request with `X-Sandbox-Id` and `X-Sandbox-Token` headers
142
143
- Reads the response status line; proceeds if 200
143
144
- Spawns two `tokio::spawn` tasks for bidirectional copy between stdin/stdout and the gateway stream
144
145
- When the remote-to-stdout direction completes, aborts the stdin-to-remote task (SSH has all the data it needs)
145
146
147
+
### Connection stability
148
+
149
+
Recent SSH stability hardening is split across the client, gateway, sandbox, and edge tunnel paths:
150
+
151
+
-**OpenSSH keepalives**: the CLI now sets `ServerAliveInterval=30` and `ServerAliveCountMax=3` on every SSH invocation so idle sessions still emit SSH traffic.
152
+
-**TCP keepalive**: the CLI-to-gateway and gateway-to-sandbox TCP sockets enable 30-second keepalive probes to reduce drops from NAT, load balancers, and other idle-sensitive middleboxes.
153
+
-**Sandbox SSH daemon**: the embedded `russh` server disables its default 10-minute inactivity timeout and instead sends protocol keepalives every 30 seconds. This prevents quiet shells from being garbage-collected while still detecting dead peers.
154
+
-**Edge WebSocket tunnel**: the WebSocket bridge now lets both copy directions observe shutdown instead of aborting the peer task immediately, which reduces abrupt closes and truncated tail data.
155
+
-**Limit diagnostics**: when the gateway rejects a connection because the per-session or per-sandbox cap is reached, it now logs the active count and configured limit to make 429s easier to diagnose.
156
+
146
157
### Command Execution (CLI)
147
158
148
159
The `sandbox exec` path is identical to interactive connect except:
0 commit comments