mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-11-16 21:09:09 +00:00
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. |
||
|---|---|---|
| .. | ||
| auto_https_conn.go | ||
| auto_https_listener.go | ||
| limit_listener.go | ||
| serve.go | ||
| serve_test.go | ||