XHTTP over HTTP/3 with `finalmask.quicParams.congestion: "brutal"` panics at the first dial; `-test` passes
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 74/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- go
- Ambito
- networking
Direzione di ricerca
Inizia con lo switch di congestione in transport/internet/splithttp/dialer.go, intorno alle righe 237–244, poi controlla come infra/conf/transport_finalmask.go convalida i valori di congestione. Usa le configurazioni client e server XHTTP/3 fornite per riprodurre il panic dopo l’handshake QUIC. Il lavoro è concluso quando brutal funziona con questo dialer oppure viene rifiutato durante il caricamento della configurazione senza causare un panic.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Integrity requirements
- I read the issue template.
- I confirm I read the documentation and did not pile up options.
- Complete configs and logs are provided below.
- I searched issues and found no similar ones.
- Reproduced on the latest release.
Description
Version: Xray 26.11.9 (Xray, Penetrates Everything.) 676eaf6 (go1.27.3 linux/amd64), the v26.11.9 release Xray-linux-64.zip (sha256 b651f7e1d9966ee2c1b1ee1bf8b52c72771824d3065dce96bbc8bcc19ed95f82). The panic site is also unchanged on main at 919d0ae (2026-11-30).
The config loader accepts congestion: "brutal" (infra/conf/transport_finalmask.go), but the XHTTP/3 dialer's switch (transport/internet/splithttp/dialer.go:237-244) handles only reno, bbr, empty and force-brutal, and ends in default: panic(quicParams.Congestion). So brutal panics (panic: brutal) right after the QUIC handshake. xray run -test prints Configuration OK.
Reproduction Method
Save the client config below as cfg.json and the server config as server.json (both on 127.0.0.1).
# server: xray run -c server.json ; client: xray run -c client.json, then
curl -x socks5h://127.0.0.1:10808 http://127.0.0.1:20001/
Expected result: either brutal is accepted and works for XHTTP/3, or the loader refuses it with a config error; no panic.
(xray run -test on the client config prints Configuration OK, exit 0. The server uses a throwaway self-signed certificate; the client pins its leaf hash.)
Client config
{
"log": {
"loglevel": "warning"
},
"inbounds": [
{
"listen": "127.0.0.1",
"port": 10808,
"protocol": "socks"
}
],
"outbounds": [
{
"protocol": "vless",
"settings": {
"vnext": [
{
"address": "127.0.0.1",
"port": 20001,
"users": [
{
"id": "c20965b7-c354-405b-a3ef-f886415c9181",
"encryption": "none"
}
]
}
]
},
"streamSettings": {
"network": "xhttp",
"security": "tls",
"tlsSettings": {
"serverName": "localhost",
"alpn": [
"h3"
],
"pinnedPeerCertSha256": "208773ca012415a909c508eeaab62107341e8dcb096c649bb3bb50540d1baf62"
},
"xhttpSettings": {
"path": "/p"
},
"finalmask": {
"quicParams": {
"congestion": "brutal",
"brutalUp": "10 mbps",
"brutalDown": "10 mbps"
}
}
}
}
]
}
Server config
{
"log": {
"loglevel": "warning"
},
"inbounds": [
{
"listen": "127.0.0.1",
"port": 20001,
"protocol": "vless",
"settings": {
"clients": [
{
"id": "c20965b7-c354-405b-a3ef-f886415c9181"
}
],
"decryption": "none"
},
"streamSettings": {
"network": "xhttp",
"security": "tls",
"tlsSettings": {
"certificates": [
{
"certificateFile": "/tmp/repro/lab/srv.crt",
"keyFile": "/tmp/repro/lab/srv.key"
}
],
"alpn": [
"h3"
]
},
"xhttpSettings": {
"path": "/p"
}
}
}
],
"outbounds": [
{
"protocol": "freedom"
}
]
}
Client log
Full output of the panicking process (ends with the exit code):
Xray 26.11.9 (Xray, Penetrates Everything.) 676eaf6 (go1.27.3 linux/amd64) A unified platform for anti-censorship. [Info] infra/conf/serial: Reading config: &{Name:/tmp/repro/cfg/h3brutal-run.json Format:json} [Warning] core: Xray 26.11.9 started from tcp:127.0.0.1:46084 accepted tcp:127.0.0.1:20001 panic: brutalgoroutine 53 [running]:
github.com/xtls/xray-core/transport/internet/splithttp.createHTTPClient.func2({0x24c9120, 0x29b4f872ac80}, {0x0?, 0x0?}, 0x29b4f85e5860, 0x29b4f85cc630)
github.com/xtls/xray-core/transport/internet/splithttp/dialer.go:241 +0x6f9
github.com/apernet/quic-go/http3.(*Transport).dial(0x29b4f849c120, {0x24c9120, 0x29b4f872ac80}, {0x29b4f8665ce0, 0xd})
github.com/apernet/[email protected]/http3/transport.go:383 +0x166
github.com/apernet/quic-go/http3.(*Transport).getClient.func1()
github.com/apernet/[email protected]/http3/transport.go:317 +0x71
created by github.com/apernet/quic-go/http3.(*Transport).getClient in goroutine 52
github.com/apernet/[email protected]/http3/transport.go:314 +0x325
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x58 pc=0xda2451]
goroutine 52 [running]:
github.com/apernet/quic-go.(*Conn).RemoteAddr(...)
github.com/apernet/[email protected]/connection.go:3095
github.com/apernet/quic-go/http3.(*fakeConn).RemoteAddr(0x29b4f872ac80?)
github.com/apernet/[email protected]/http3/trace.go:31 +0x11
github.com/xtls/xray-core/transport/internet/splithttp.(*DefaultDialerClient).OpenStream.func1({{0x24d0208?, 0x29b4f84020c8?}, 0xc0?, 0xda?, 0x0?})
github.com/xtls/xray-core/transport/internet/splithttp/client.go:54 +0x4a
github.com/apernet/quic-go/http3.traceGotConn(...)
github.com/apernet/[email protected]/http3/trace.go:36
github.com/apernet/quic-go/http3.(*Transport).doRoundTripOpt(0x29b4f849c120, 0x29b4f852b7c0, {0xd0?}, 0x0)
github.com/apernet/[email protected]/http3/transport.go:234 +0x40a
github.com/apernet/quic-go/http3.(*Transport).roundTripOpt(0x29b4f849c120, 0x29b4f852b7c0, {0x0?})
github.com/apernet/[email protected]/http3/transport.go:211 +0x3db
github.com/apernet/quic-go/http3.(*Transport).RoundTripOpt(...)
github.com/apernet/[email protected]/http3/transport.go:169
github.com/apernet/quic-go/http3.(*Transport).RoundTrip(0x29b4f8782010?, 0x29b4f852b7c0)
github.com/apernet/[email protected]/http3/transport.go:290 +0x1a
net/http.send(0x29b4f852b7c0, {0x24bca20, 0x29b4f849c120}, {0x4a4cea?, 0x7f1ce0cb2808?, 0x0?})
net/http/client.go:266 +0x802
net/http.(*Client).send(0x29b4f8735920, 0x29b4f852b7c0, {0x42e3b4?, 0x2000?, 0x0?})
net/http/client.go:187 +0x27e
net/http.(*Client).do(0x29b4f8735920, 0x29b4f852b7c0)
net/http/client.go:745 +0x992
net/http.(*Client).Do(...)
net/http/client.go:604
github.com/xtls/xray-core/transport/internet/splithttp.(*DefaultDialerClient).OpenStream.func2()
github.com/xtls/xray-core/transport/internet/splithttp/client.go:73 +0xa7
created by github.com/xtls/xray-core/transport/internet/splithttp.(*DefaultDialerClient).OpenStream in goroutine 50
github.com/xtls/xray-core/transport/internet/splithttp/client.go:72 +0x5ea
exit=2
Server log
Server started normally, no warnings (loglevel: warning).
- Lingua principale
- Go
- Stelle
- 43.3k
- Fork
- 6.2k
- Merge medio
- 2g 11h
- PR unite (30g)
- 55
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di XTLS/Xray-core
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
XDRIVE: S3兼容存储因先删除非空父目录再删子文件报错412Forse già presa @earmark-halt l’ha presa 16 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
XTLS/Xray-core#7428 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di XTLS/Xray-core
Issue simili
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:other issue-rating: 🦞 diamond lobster no-stale P2
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
openclaw/crabbox#3249 · 1 commento · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
ec2-subnet, security-group and internet-gateway skip all resources when one is deleted during the scanForse già presa @toabctl l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
gruntwork-io/cloud-nuke#1208 ·
I maintainer di solito rispondono entro 5 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
snowflakedb/gosnowflake#1872 ·
-
MCP `shadow` says `out` is a folder, but for TS, Python, C, Go and Ruby it is the module's fileApertagood first issue help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
erkamyaman/rust-anything#1328 ·
I maintainer di solito rispondono entro 1 giorno