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. |
||
|---|---|---|
| .. | ||
| bodylimit.go | ||
| bodylimit_test.go | ||
| config_envelope.go | ||
| config_envelope_test.go | ||
| domainValidator.go | ||
| gzip_static.go | ||
| gzip_static_test.go | ||
| security.go | ||
| security_test.go | ||
| validate.go | ||
| validate_mutation_test.go | ||
| validate_protocol_test.go | ||
| validate_test.go | ||