mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-11-27 04:54:45 +03:00
22ffae302f
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