From 48281b473571d93d5a35d2250213902d1411de40 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Mon, 12 Oct 2026 16:00:23 -0300 Subject: 9web: allow HTTP listener restarts without sharing live ports Set SO_REUSEADDR before binding Linux HTTP sockets so recent connections do not block a systemd restart. Avoid SO_REUSEPORT: the std.Io combined reuse option would permit another live process to bind the same endpoint. Return the listener to std.Io for cancellable accepts. Exercise immediate dashboard/site restarts after HTTP traffic and rejection of a competing live listener in the Chromium suite. Catalogue, HTTP filesystem and all 32 original E2E scenarios also pass. --- docs/catalog.md | 2 ++ 1 file changed, 2 insertions(+) (limited to 'docs') diff --git a/docs/catalog.md b/docs/catalog.md index 24b6fb9..79e5580 100644 --- a/docs/catalog.md +++ b/docs/catalog.md @@ -181,6 +181,8 @@ history, direct tab links, builds through `/fs`, logs in the file browser, preservation of unsaved edits and focused controls, and mobile layout. It writes inspection screenshots to `.zig-cache/catalog-ui/`. It uses the installed `google-chrome-stable` binary (or `CLOUD9_CHROME`), with no npm dependencies. +It also checks that live HTTP ports stay exclusive and recent connections do not +prevent an immediate restart of the dashboard or site listeners. ## Installed workstation configuration -- cgit v1.3