Skip to content

panic: close of closed channel(github.com/quic-go/quic-go/http3.(*hijackableBody).requestDone(...)) #4148

@xqzr

Description

@xqzr
panic: close of closed channel

goroutine 2655 [running]:
github.com/quic-go/quic-go/http3.(*hijackableBody).requestDone(...)
  github.com/quic-go/quic-go@v0.46.0/http3/body.go:124
github.com/quic-go/quic-go/http3.(*hijackableBody).Close(0xc000df0720)
  github.com/quic-go/quic-go@v0.46.0/http3/body.go:130 +0x2b
github.com/xtls/xray-core/transport/internet/splithttp.(*WaitReadCloser).Close(0x180a2b8?)
  github.com/xtls/xray-core/transport/internet/splithttp/client.go:284 +0x39
github.com/xtls/xray-core/transport/internet/splithttp.(*splitConn).Close(0xc000758fa0)
  github.com/xtls/xray-core/transport/internet/splithttp/connection.go:31 +0x5f
github.com/xtls/xray-core/proxy/trojan.(*Client).Process(0xc001220d20, {0x165cff8, 0xc000758ff0}, 0xc000059900, {0x165a340, 0xc000a49300})
  github.com/xtls/xray-core/proxy/trojan/client.go:164 +0xaf1
github.com/xtls/xray-core/app/proxyman/outbound.(*Handler).Dispatch(0xc000a49300, {0x165cfc0, 0xc000e1f0e0}, 0xc000059900)
  github.com/xtls/xray-core/app/proxyman/outbound/handler.go:211 +0x388
github.com/xtls/xray-core/app/dispatcher.(*DefaultDispatcher).routedDispatch(0xc000a50a20, {0x165cfc0, 0xc000e1f0e0}, 0xc000059900, {{0x165ccb0, 0xc00121d080}, 0x1bb, 0x2})
  github.com/xtls/xray-core/app/dispatcher/default.go:481 +0xc26
created by github.com/xtls/xray-core/app/dispatcher.(*DefaultDispatcher).Dispatch in goroutine 2654
  github.com/xtls/xray-core/app/dispatcher/default.go:268 +0x56c
panic: close of closed channel

goroutine 359380 [running]:
github.com/quic-go/quic-go/http3.(*hijackableBody).requestDone(...)
  github.com/quic-go/quic-go@v0.46.0/http3/body.go:124
github.com/quic-go/quic-go/http3.(*hijackableBody).Close(0xc00057b0b0)
  github.com/quic-go/quic-go@v0.46.0/http3/body.go:130 +0x2b
github.com/xtls/xray-core/transport/internet/splithttp.(*WaitReadCloser).Close(0x180a2b8?)
  github.com/xtls/xray-core/transport/internet/splithttp/client.go:284 +0x39
github.com/xtls/xray-core/transport/internet/splithttp.(*splitConn).Close(0xc000fb0dc0)
  github.com/xtls/xray-core/transport/internet/splithttp/connection.go:31 +0x5f
github.com/xtls/xray-core/proxy/trojan.(*Client).Process(0xc0000b6360, {0x165cff8, 0xc000fb0e10}, 0xc0000b6fc0, {0x165a340, 0xc00030f300})
  github.com/xtls/xray-core/proxy/trojan/client.go:164 +0xaf1
github.com/xtls/xray-core/app/proxyman/outbound.(*Handler).Dispatch(0xc00030f300, {0x165cfc0, 0xc000707140}, 0xc0000b6fc0)
  github.com/xtls/xray-core/app/proxyman/outbound/handler.go:211 +0x388
github.com/xtls/xray-core/app/dispatcher.(*DefaultDispatcher).routedDispatch(0xc000312900, {0x165cfc0, 0xc000707140}, 0xc0000b6fc0, {{0x165ccb0, 0xc000934d50}, 0x1bb, 0x2})
  github.com/xtls/xray-core/app/dispatcher/default.go:481 +0xc26
created by github.com/xtls/xray-core/app/dispatcher.(*DefaultDispatcher).Dispatch in goroutine 359379
  github.com/xtls/xray-core/app/dispatcher/default.go:268 +0x56c

运行过程中,偶尔崩溃。目前共崩溃 2 次
https://t.me/projectXray/4099829?thread=4099814

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions