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)
144
+
- Enables TCP keepalive on the gateway socket
144
145
- Sends a raw HTTP CONNECT request with `X-Sandbox-Id` and `X-Sandbox-Token` headers
145
146
- Reads the response status line; proceeds if 200
146
147
- Spawns two `tokio::spawn` tasks for bidirectional copy between stdin/stdout and the gateway stream
147
148
- When the remote-to-stdout direction completes, aborts the stdin-to-remote task (SSH has all the data it needs)
148
149
150
+
### Connection stability
151
+
152
+
Recent SSH stability hardening is split across the client, gateway, sandbox, and edge tunnel paths:
153
+
154
+
-**OpenSSH keepalives**: the CLI now sets `ServerAliveInterval=30` and `ServerAliveCountMax=3` on every SSH invocation so idle sessions still emit SSH traffic.
155
+
-**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.
156
+
-**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.
157
+
-**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.
158
+
-**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.
159
+
149
160
### Command Execution (CLI)
150
161
151
162
The `sandbox exec` path is identical to interactive connect except:
0 commit comments