Files
mirror-3x-ui/internal/web
Sanaei 22ffae302f fix(inbounds): keep the running handler when its replacement cannot be added
A save that has to rebuild an inbound's handler removed the running one
through the Xray API and then added the new one. xray-core's API server
reads requests of at most 4 MiB, which a VLESS inbound passes at about
46,000 clients, so the add was refused after the removal had gone
through. The inbound then stayed down until the periodic restart picked
the change up: 12 s on a 100,000-client inbound in a lab run, up to the
restart interval in general.

The add request is now built and measured before anything is sent, and
the save asks the local runtime for that check before it removes the old
handler. When the replacement cannot go through the API the old handler
keeps serving and the save asks for the restart it needed anyway, with a
warning that names the size. In the same lab run the inbound's port was
closed only for the restart itself.

Refs #7207
2026-11-26 13:18:21 +03:30
..