3x-ui/internal/web
MHSanaei 3526a65f5d
fix(web): bound the panel's open connections and share asset gzip
The engine-wide gzip middleware gave every in-flight request its own
compressor of about 1 MiB, and the public /assets bundles let an
anonymous client keep a handler blocked in Write until WriteTimeout, so
a thousand stalled downloads held a gigabyte. The listener itself took
any number of connections, each holding buffers and a goroutine before
any login.

The bundles are now served from a gzip copy made once per file, with
the assets prefix left out of the per-request middleware, and the panel
listener closes a new connection once 2048 are open or its source (an
IPv4 address or IPv6 /64) holds 256; a loopback reverse proxy counts
only toward the total.
2026-11-01 01:01:38 +01:00
..
controller fix(api): cap the client traffic list a master pushes by entry count 2026-10-31 14:25:21 +01:00
entity feat(hosts): give a host a pool of SNIs, random per config or shared (#6923) 2026-10-24 21:05:42 +02:00
global
job fix(ldap): keep expired and over-quota clients off on directory sync 2026-11-01 00:44:05 +01:00
locale fix(i18n): publish the translation bundle only once it is complete 2026-10-31 09:11:54 +00:00
middleware fix(web): bound the panel's open connections and share asset gzip 2026-11-01 01:01:38 +01:00
network fix(web): bound the panel's open connections and share asset gzip 2026-11-01 01:01:38 +01:00
runtime fix(api): cap the client traffic list a master pushes by entry count 2026-10-31 14:25:21 +01:00
service fix(sub): resolve a blank subId to no subscription 2026-11-01 00:57:32 +01:00
session fix(web): start a fresh session at login 2026-10-31 09:05:28 +00:00
translation feat(tls): cipher suite presets and a uTLS fingerprint warning 2026-10-25 15:54:48 +01:00
websocket fix(tuic): client speed display and certificate button layout (#6723) 2026-10-05 19:46:46 +02:00
assets_test.go fix(web): bound the panel's open connections and share asset gzip 2026-11-01 01:01:38 +01:00
cadence_test.go Add remote routing URL support (#6168) 2026-08-18 16:02:11 +02:00
node_contract_test.go fix(node): drop a swept inbound's bookkeeping from the node runtime 2026-10-31 09:28:39 +00:00
routes_contract_test.go fix(web): bound the panel's open connections and share asset gzip 2026-11-01 01:01:38 +01:00
schedule_test.go fix(settings): accept five-field crontab for report and LDAP schedules 2026-10-11 20:37:04 +02:00
web.go fix(web): bound the panel's open connections and share asset gzip 2026-11-01 01:01:38 +01:00
web_mtls.go
web_mtls_test.go
web_shutdown_test.go fix(web): install the share-link provider before the panel serves (#6914) 2026-10-24 05:50:46 +02:00
web_sublink_test.go fix(web): install the share-link provider before the panel serves (#6914) 2026-10-24 05:50:46 +02:00
web_tuic_shutdown_test.go fix(web): install the share-link provider before the panel serves (#6914) 2026-10-24 05:50:46 +02:00