Volume test pre-notice: bounded SSE connection-holding measurement on testnet-0005
Report
This is a campaign notice, not a bug report. I am pre-notifying a bounded volume measurement against the public testnet, as required, so the team can watch and attribute the traffic. If the measurements show nothing, I will close this issue with the numbers attached. If they show reproducible degradation, I will file a separate finding with the measurements as evidence.
Attribution: blacktokyo (X @blacktokyo).
Already known — NOT what this campaign claims:
- Issue #383: the T2-B sync-stream campaign under this same program — clean negative, closed with the numbers attached. Distinct: it measured sync streams. This campaign sends no sync traffic and measures only SSE connection holding.
- PR #343 / issue #297: chat PoW difficulty floor. Not touched — no chat messages are sent and no PoW is computed; this campaign holds connections only.
- XE-1624 (filed by another researcher): the sync client resets its 10 MiB response cap per page. Not touched — no sync traffic at all in this campaign.
- Issue #70: GET /accounts does full-lattice work regardless of ?limit=. Not touched (no /accounts traffic beyond a handful of baseline reads).
- Issue #59: net/sync no in-flight guard on sync rounds (client-side first-sync memory/CPU). Not touched — no sync traffic in this campaign.
- The 60 s WriteTimeout cap itself is a known constant (cmd/xe/main.go:1458). The campaign measures what happens when many streams are held under continuous re-open beneath that cap, not the cap's existence.
What the campaign measures:
- The concurrency ceiling for SSE streams: how health (/health latency), readiness (/ready), and finality advancement (finality_advances, block_count from /node) respond as concurrent SSE streams step from 10 → 50 → 100 → 250 → 500 → 1000, held by continuous re-open (each stream is killed by the server at ~60 s).
- Per-stream server cost at scale: open success rate, time-to-first-: connected, time-to-first-ping, and the achieved concurrent count (streams actually open, measured from open/close timestamps — not just the attempted number).
- Whether any degradation is reproducible and clears after the run (cool-down check).
Baseline already measured (light probes, no degradation): a single SSE stream opened in 0.157 s (: connected at 0.2 s, pings at 20.3 s and 40.2 s) and was killed by the server at 60.156 s; /health 0.155–0.176 s during the stream; /ready true throughout. A local control node with no proxy in the path killed its own stream at 60.002 s — the 60 s cap is the node's own WriteTimeout, not a proxy. Per-stream cost measured locally: +2 goroutines, +1 file descriptor, ~+1.1 MB heap at open, released cleanly on stream death.
Hard bounds (this campaign will not exceed any of these):
-
Source: Single client, single IP, plain HTTPS (SSE is not a libp2p protocol — no peer identity applies); 10 fresh ephemeral probe accounts (ed25519 keypairs, no funds), streams distributed across them; account IDs recorded in the run log
-
Target: https://ldn.core.test.network node 12D3KooWJg4PQYGSfNCupBWZdEWbKj7pgdp5MmmUXbPdBcp6YDtT (testnet-0005, xe/3019b76)
-
Endpoints: GET /chat/auth/challenge + GET /chat/events?account=… (SSE); plus read-only GET /health, /ready, /node, /supply (1 Hz sampling during runs)
-
Stream shape: Fixed — one probe account per stream, fresh challenge + ed25519 signature per open, no messages sent; each stream lives ≤~60 s by the server's own WriteTimeout, re-opened on death to hold N
-
Concurrency: ≤ 1000 concurrent SSE streams (attempted ceiling); steps 10 → 50 → 100 → 250 → 500 → 1000, separate runs; achieved concurrency measured and reported
-
Stream rate: ≤ ~17 opens/s at the top step (N/60 per second, replacing streams the server kills); ≤ 2 read tokens per open — ≤ ~34 tokens/s at N=1000, inside the 200/s read bucket
-
Duration: ≤ 10 min per run (5 min target); 2-min cool-down + baseline re-check between runs
-
Total volume: ≤ 10,000 stream opens per run (10-min max at N=1000); ≤ ~20,000 opens across the whole campaign; per-stream traffic is only : connected + 20 s pings (a few hundred bytes), so total egress is a few MB
-
Writes: None — read-only SSE streams; no chat messages sent, no blocks submitted, no state changed, no faucet, no funds, no directory registration
-
Out of scope (never touched): Hosting layer (nginx/DNS/website/faucet), /accounts, sync streams (/xe/sync/1.0.0), any other node, the unfiltered firehose (admin-only, no account param), X-Forwarded-For spoofing / IP rotation, the chat PoW difficulty floor (PR #343)
Abort criteria (any one stops the run immediately): /ready returns false; /health p95 > 5 s sustained 60 s; finality_advances stalls > 60 s; stream open failure rate > 10% (an open failure is a non-200 response, an open timeout, or a stream dying <50 s after open — a death at ~60 s is the expected WriteTimeout kill, not a failure); /health or /ready unreachable for >60 s sustained.
What counts as a finding vs noise: a finding is reproducible, monotonic degradation with concurrency (health-latency growth, readiness flip, finality stall, open-failure growth) that clears on cool-down. Noise is single-sample latency spikes, first-sample cold effects (~1 s), Caddy/proxy variance, the expected ~60 s stream deaths, and transient dial/read errors.
If nothing is found: I will close this issue with the full measurements attached.
Thread
Thanks for the report. We have read it and answered what it raises.
This report is closed as answered. If there is more to it, file a new report that links https://bounty.xe.network/XE-13257; it is read like any other.