Files
inbuxa-server/resources/schema/schema.json.sha256
jcoffey-dev ea6c706125
ci / fork-checks (pull_request) Skipped
ci / build (pull_request) Skipped
github/ci (branch) GitHub Actions
ci / github (pull_request) Successful in 13m50s
Listeners that can't open: retry, then report through readiness (#485)
A listener that couldn't bind used to be logged once and forgotten: the
node looked alive to anything checking the process, and a port the old
process still held for a moment after a restart was never tried again.

- Each listener now opens in its own task. A port in use is retried
  with backoff (0.5 s doubling to 5 s) for 30 s; any other bind error
  fails at once.
- A listener that isn't open is kept in ListenerControl's failures,
  "id address: reason" (also while it's being retried). /healthz/ready
  answers 503 with {"unboundListeners": [...]} while any is listed;
  liveness is unchanged. Stopping a listener on purpose (the
  legacy-protocols switch) clears it.
- Each node writes its list to the store (`_` key "Ol" + node id, owner
  'O' "listener status" in fork_subspaces), and x:ClusterNode gets a
  read-only unboundListeners (property 947) read from there, so the
  console can show it whichever node it talks to. A node clears its
  record at startup.
- INBUXA_LISTENER_FAILURE=exit ends the process with exit code 1 when a
  listener configured at startup can't open, after the retry window.
  "report" is the default. Listeners put back later (LP-5) only report.

Test: bind_health (failure list, backoff, which errors retry, the
setting) and listen.rs (a port in use is waited for; one held too long
fails after the window; other bind errors aren't retried).
2026-11-19 10:19:27 -07:00

1 line
43 B
Plaintext

s1j6j79sdVPo9onPNL8iJOJRz_V5NLJAaU6MHps8z54