<!-- XE-0019 · Volume test pre-notice: bounded SSE concurrency test on /chat/events (2026-10-25 07:00 UTC) · testnet -->
*Markdown view of <https://bounty.xe.network/XE-0019>. The page is the record; this is the same page for reading.*

XE-0019 · Bounty

# Volume test pre-notice: bounded SSE concurrency test on /chat/events (2026-10-25 07:00 UTC)

Closed · answered
—
[xe#40](https://github.com/xeprotocol/xe/issues/40)
filed 2026-10-25 06:55 UTC
by lufreeking

Verdict
:   Notice

Tier
:   —

Claimed
:   —

Area
:   Ops / testnet

Duplicate of
:   —

Tracked
:   —

Updated
:   2026-11-10 00:11 UTC

Told
:   2026-11-08 20:37 UTC

### Patches

None linked.

### History

- [45107](https://bounty.xe.network/log/45107) 2026-11-08 20:37 UTC reply.mirrored
- [45105](https://bounty.xe.network/log/45105) 2026-11-08 20:37 UTC reply.sent
- [45104](https://bounty.xe.network/log/45104) 2026-11-08 20:37 UTC proposal.adopted
- [4175](https://bounty.xe.network/log/4175) 2026-11-04 09:20 UTC proposal.created
- [4169](https://bounty.xe.network/log/4169) 2026-11-04 09:19 UTC proposal.created
- [901](https://bounty.xe.network/log/901) 2026-10-29 14:23 UTC github.state\_pushed
- [900](https://bounty.xe.network/log/900) 2026-10-29 14:23 UTC github.labels
- [847](https://bounty.xe.network/log/847) 2026-10-29 14:22 UTC note.added
- [846](https://bounty.xe.network/log/846) 2026-10-29 14:22 UTC ticket.status new → closed
- [845](https://bounty.xe.network/log/845) 2026-10-29 14:22 UTC ticket.facts area
- [53](https://bounty.xe.network/log/53) 2026-10-29 13:57 UTC note.added
- [52](https://bounty.xe.network/log/52) 2026-10-29 13:57 UTC ticket.created

[Full history](https://bounty.xe.network/log?ref=XE-0019) · [JSON](https://bounty.xe.network/v1/tickets/XE-0019) · [markdown](https://bounty.xe.network/XE-0019.md)

### Report

## What this is

Pre-notification of a **bounded, single-source volume test** against the public
testnet node, per the Rules on `/bounty`:

> Volume testing against the public testnet nodes is authorized; open an issue
> before a sustained campaign so we can watch it and attribute the results to you.

Filed **before** sending any traffic so you can attribute it and tell me to hold
if the window is inconvenient. Measurements and the finding write-up will be
posted in this same issue afterwards. Testnet only — no mainnet, no
hosting-layer/volumetric DDoS, no writes.

## Hypothesis (from source review, not yet executed)

`GET /api/v1/chat/events` appears to accept an unbounded number of concurrent SSE
streams per client, and every stream subscribes to the node-wide chat bus:

- `api/chat.go` → `handleChatEvents`: calls `h.node.SubscribeChat()` on **every**
  connection, then filters by `account` in-process (`msg.From != account && msg.To != account`). No concurrency cap, no per-IP/per-account stream quota,
  no backpressure, no slow-reader eviction.
- `api/handler.go` → `rateLimitMiddleware`: the read limiter (1000 per 5 s, burst
  1000\) only counts **stream establishment**, not stream lifetime — long-lived
  streams are effectively unmetered.
- `api/chat_auth.go` → `verifyProof`: each challenge is correctly burned (`s.seen`
  nonce dedupe), so N streams need N challenges — but
  `GET /chat/auth/challenge` is itself unmetered and signing is local, so that is
  not a barrier.

Expected (to be measured): per-connection cost grows linearly; at high concurrent
stream counts, chat fan-out amplifies CPU/memory and can starve other SSE/API
clients. Maps to **Track 2 → "Chat, SSE and API starvation under many concurrent
clients"**.

Confirmed without load:

- `GET /api/v1/chat/events` with no ownership proof returns `403 operator endpoint disabled: no admin token configured` — streams are not anonymously
  reachable; a real keypair is required.

## Planned test parameters

| Item | Value |
| --- | --- |
| Target | `https://test.network/api/v1` (testnet-0005, London node) |
| Source | **single host, no proxies/VPN** — exact IP not posted publicly; available privately to `security@xe.network` on request |
| Window | **2026-10-25 07:00–07:15 UTC** (\= 15:00–15:15 UTC\+8), duration ≤ 10 min |
| Ramp | 20 → 40 → 60 → 80 → 100 → 120 concurrent streams, `+20` per step |
| Hold per step | 15 s |
| **Hard cap** | **120 concurrent streams** (the client refuses to exceed 500 even if re-run with other flags) |
| Probes | `GET /health` p50/p95, `GET /ready` status, `GET /node` (`finality_advances`, `peer_count`, `dropped_blocks`) |
| **Abort conditions** | p95 \> 2000 ms, or `/ready` !\= 200, or any 429 → stop immediately, release all sockets, report |
| Auth | throwaway test keypair, account `18721dee6ea6d86a287ce15a158015dbf1eda282b683b857916c5f091c6f9e5b`, fresh challenge per stream |

## How to attribute the traffic

Every request in this test carries one extra query parameter, `ref=lufreeking`.
The node ignores unknown query parameters, so this changes no behaviour; it only
makes my traffic greppable in your access logs:

`GET /api/v1/chat/events?account=18721dee…&pub_key=…&challenge=…&sig=…&ref=lufreeking`

`grep ref=lufreeking` should isolate 100% of it. If you would rather use a
different tag, say which and I'll switch.

## What I will NOT do

- No traffic against nginx/DNS/faucet/hosting layer.
- No `POST` / no writes of any kind during this test.
- No attempt to touch other users' keys, funds, messages or workloads.
- No ramp beyond 120 concurrent without asking again in this issue.

## What I'd like from you

1. Confirm the window (2026-10-25 07:00 UTC) is fine, or tell me to hold.
2. If you want a lower cap for the first pass, name the number.
3. If you have a preferred attribution mechanism, tell me.

Thanks — happy to coordinate live if you'd like to watch the node.

— @lufreeking

### Thread

**lufreeking**2026-10-25 07:07 UTCgithub

## Observation before any load: node already not\_ready

Stopped at the baseline step, before sending more than a single SSE stream.
`/ready` was already failing **before** any load from me:

- `finality_stall_seconds` ≈ 2890 s; `last_finality_ns` \= 1792909096804739599
  → last finality advance ≈ **2026-10-25 06:18:16 UTC**, i.e. \~42 min before my window
- `active_representatives`: 0 of 1; `quorum_margin_ratio`: -0.67
- `unfinalized_positions`: 140; `conflicts_open`: 2
- `quorum_reachable` and `finality_advancing`: both false
  ("NO representative has voted in the last 10m0s")

Confirmed this is **not** my `ref=` tag: `/ready` returns an identical body with
and without `?ref=lufreeking`.

Since the node is degraded before I send anything, any latency or finality number
I measure now cannot be attributed to SSE concurrency — so I aborted rather than
adding load. No further traffic from me until you say otherwise.

Two questions:

1. Is this stall expected (e.g. the single representative is offline / planned
   maintenance), or an incident you are already tracking?
2. Should I wait for `/ready` to return 200 and re-test, or run anyway with the
   existing degradation recorded as the baseline?

I'll announce a new window here before sending any volume.

**Joseph Denne**team2026-11-08 20:37 UTCgithub

Thanks for the notice and for stopping at the baseline when `/ready` was already failing; that was the right call. The stall you observed was a node-side finality incident already being handled, not anything you sent. The SSE concurrency hypothesis stands as its own question and was not tested. This issue closes as answered; if you want to run the bounded test now that the node is healthy, post a fresh notice and go ahead.
