Edge wake hold measurements
A request to a sleeping sandbox wakes it. The edge, Hermitbox’s public entry point, holds the client’s first bytes while control wakes the sandbox, then relays them. A hold only helps while the client is still waiting, so this page measures how long common clients wait on a server that accepts a connection but never answers. That wait bounds the default hold.
How the edge holds connections
The edge keeps the TLS ClientHello and HTTP request bytes, sends the client nothing while it waits, and splices the bytes through once control has woken the sandbox.
Waking an archived (rest) sandbox restores its files from a snapshot, so it can take longer than
resuming one whose memory was kept. Set the hold for the clients and images you actually run. When
a hold fails, the connection closes, and the caller can reconnect once startup finishes.
Control numbers route versions in the database and records the last version each edge holds in full. A running sandbox shows as starting until every counted edge holds the first version that names it running. Liveness rules leave out quiet or lagging edges and cap that wait at 15 seconds; they never fence a node or authorize failover. Route epochs fence edge connections separately.
Measurements
Measured on Linux against a TCP listener that accepts but never writes, with each client’s
default timeouts. n=3 per client and protocol; each observation stops at 15 seconds.
A censored row hit that cap, so its numbers are lower bounds, not estimated timeouts. p90 is the nearest-rank sample maximum. The results describe these client versions on this host, not every version.
| Client | Wait | n | p50 seconds | p90 seconds | Censored |
|---|---|---|---|---|---|
| Chrome | HTTP | 3 | ≥ 15.034 | ≥ 15.048 | 3/3 |
| Chrome | TLS | 3 | ≥ 15.040 | ≥ 15.049 | 3/3 |
| Go net/http | HTTP | 3 | ≥ 15.005 | ≥ 15.014 | 3/3 |
| Go net/http | TLS | 3 | 10.064 | 10.076 | 0/3 |
| Node fetch | HTTP | 3 | ≥ 15.014 | ≥ 15.295 | 3/3 |
| Node fetch | TLS | 3 | 10.724 | 10.779 | 0/3 |
| OpenSSH | banner | 3 | ≥ 15.023 | ≥ 15.030 | 3/3 |
| Python requests | HTTP | 3 | ≥ 15.036 | ≥ 15.039 | 3/3 |
| Python requests | TLS | 3 | ≥ 15.009 | ≥ 15.011 | 3/3 |
| curl | HTTP | 3 | ≥ 15.049 | ≥ 15.162 | 3/3 |
| curl | TLS | 3 | ≥ 15.048 | ≥ 15.049 | 3/3 |
| Safari | TLS and HTTP | 0 | unavailable | unavailable | Safari cannot run on this Linux host |
The default hold is 5 seconds, below the shortest timeout measured: Go net/http over TLS, at
about 10 seconds. Node fetch over TLS gave up near 11 seconds, and every other client stayed
connected through the cap. Safari is unmeasured, so this page claims no Safari bound and no
guarantee for every client. HERMITBOX_EDGE_HOLD_SECONDS changes the hold
(edge/README.md). A longer hold can cover a slow boot, but it can’t make a
client wait longer than its own timeout.
Reproduce the measurements
# Create a virtual environment with the pinned Python client.
python3 -m venv ~/.local/hermitbox-edge-measure
~/.local/hermitbox-edge-measure/bin/pip install requests==2.32.5
# Put it and Go on PATH, then run the measurement script.
export PATH="$HOME/.local/hermitbox-edge-measure/bin:$HOME/.local/go/bin:$PATH"
python3 control/tools/measure-edge.pyThe script builds a standard Go HTTP client, then runs curl without a max-time, Node fetch without an AbortSignal, Python requests without a timeout, Go http.Get, headless Chromium with dump-dom, and ssh with no ConnectTimeout. Chromium runs with no-sandbox for this local test only. Each process group still running at the cap is killed there. Go came from its published archive, with its published SHA256 checked.
Tested client versions
- curl 8.14.1 (x86_64-pc-linux-gnu) libcurl/8.14.1 OpenSSL/3.5.7 zlib/1.3.1 brotli/1.1.0 zstd/1.5.7 libidn2/2.3.8 libpsl/0.21.2 libssh2/1.11.1 nghttp2/1.64.0 nghttp3/1.8.0 librtmp/2.3 OpenLDAP/2.6.10
- Node.js v24.22.1
- Python requests 2.32.5
- go version go1.27.3 linux/amd64
- Chromium 155.0.8059.79 built on Debian GNU/Linux 13 (trixie)
- OpenSSH_10.0p2 Debian-7+deb13u4, OpenSSL 3.5.7 9 Jun 2026
$curl -fsSL https://hbx.sh | shInstall Hermitbox and set it up for me