Commit Graph
21 Commits
Author SHA1 Message Date
penguinehisandClaude Opus 4.8 e77dc6f62f Pin native Xray transport params to xray-core defaults; keep only safe knobs
Remove the transport-shaping tuning footguns that could break data flow if
misconfigured, and hardcode them to xray-core / Go net/http2 defaults instead:

- HTTP/2: stop overriding MaxConcurrentStreams and the per-conn/per-stream upload
  buffers; use Go's defaults exactly like xray-core's splithttp hub does.
- XHTTP reorder buffer default is now 30 (xray-core scMaxBufferedPosts), still
  overridable per-inbound from the generated config.
- Mux per-connection session cap, mux UDP idle/read/write buffers, and the XHTTP
  session cap are now fixed constants rather than admin knobs.

The XrayNativeTuning struct and admin UI keep only the operator-safe controls:
Go GOMAXPROCS, the global mux-session DoS cap, and the packet-trace debug toggle.
Old config.json files with the removed keys still load (unknown fields ignored).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-04 23:38:38 -03:00
penguinehisandClaude Opus 4.8 4b9f6c123a Align native Xray with xray-core; drop dead knobs; split admin app.js
Fix the two reliability problems in the in-process Xray emulator by matching
XTLS/Xray-core's transport semantics:

- XHTTP upload queue: rewrite as a faithful port of xray-core's uploadQueue
  (bounded channel + sequence reorder heap). Packet-up POSTs are now acked
  immediately on buffering instead of blocking until the tunnel reader consumes
  them. The old block-until-consumed behavior throttled the uplink to the
  reassembly rate and deadlocked against the client's concurrent-POST limit,
  which showed up as "download a burst, stall, repeat" on video/large downloads.
- Mux: dial the backend and pump uplink on a per-session goroutine fed by a
  bounded channel (mirrors xray-core's per-session buffered pipe). Previously the
  dial and backend writes ran inline in the shared read loop, so one slow target
  or backpressured session stalled every other muxed session.
- XHTTP download writer: flush every write (matches httpServerConn.Write) instead
  of batching behind a 2ms/32KB window.
- XHTTP: enforce a single download (stream-down) per session to stop two GETs
  from splitting the decoded stream and corrupting the tunnel.
- Fix a close-of-closed-channel race in the mux session teardown (sync.Once).

Remove the now-inert XHTTP tuning knobs (xhttp_queue_timeout_ms, xhttp_flush_ms,
xhttp_flush_bytes) from the backend struct and the admin panel UI.

Split admin/assets/app.js into ordered classic-script modules under
admin/assets/js/ for maintainability. The concatenation is byte-identical to the
old file and load order is preserved via defer, so behavior is unchanged.

Add regression tests for the mux head-of-line stall and the out-of-order
packet-up burst-stall; add golang.org/x/text to go.mod so tests build.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-04 23:27:11 -03:00
penguinehis ea15f1bfa1 Fix xray 2026-07-04 20:24:20 -03:00
penguinehis 0eaa48ffd0 Native Xray 2026-07-04 17:26:01 -03:00
penguinehis 60cb2e3cdb Fix xray config bug 2026-05-11 22:45:22 -03:00
penguinehis f1a587e00d Mult node launch 2026-05-11 22:10:17 -03:00
penguinehis 1ad8b868ab FIx mult panel server 2026-05-11 21:52:07 -03:00
penguinehis 67d56b2a76 Fix Mult server 2026-05-11 14:39:55 -03:00
penguinehis b66d194fa7 Mult server 2026-05-11 14:32:16 -03:00
penguinehis 391db7708f New panel 2026-05-10 18:42:38 -03:00
penguinehis 603ae906a1 Fix panel 2026-05-10 18:32:59 -03:00
penguinehis 4a04ff79f0 Fix panel 2026-05-10 18:21:03 -03:00
penguinehis e00a7bd93c Fix panel 2026-05-10 18:14:16 -03:00
penguinehis 77a722d4ed Fix Admin panel and xray count 2026-05-10 18:05:24 -03:00
penguinehis 03c43debf4 Panel Update 2026-05-10 17:52:36 -03:00
penguinehis 3c7b02b8db Fix Daily usage 2026-05-03 21:54:48 -03:00
penguinehis c74f6e2282 New Features and safe log 2026-05-03 11:05:13 -03:00
penguinehis 9b5f436a6e Fix udp description 2026-05-02 23:34:30 -03:00
penguinehis d01fb919aa Safe Update 2026-05-02 23:20:13 -03:00
penguinehis f8fac513e3 Update Vmess 2026-05-02 18:46:46 -03:00
penguinehis 6f677d272a Launch 2026-05-02 18:42:58 -03:00