I just saw that you have an update, but it seems that there are still some problems on openwrt, such as the problem that it can easily cause the exit
goroutine 284 [select]:
github.com/sagernet/cronet-go.(*BidirectionalConn).Read(0x400008e9c0, {0x40003e8400, 0x3, 0x7c00})
/root/cronet-go/bidirectional_conn.go:72 +0xac
io.ReadAtLeast({0x7f8ef91d18, 0x400008e9c0}, {0x40003e8400, 0x3, 0x7c00}, 0x3)
/usr/local/go/src/io/io.go:331 +0xa4
io.ReadFull(...)
/usr/local/go/src/io/io.go:350
main.(*PaddingConn).Read(0x400009ae10, {0x40003e8400, 0x7c00, 0x7c00})
/root/cronet-go/naive/main.go:297 +0x12c
github.com/sagernet/sing/common/bufio.(*ExtendedReaderWrapper).ReadBuffer(0x7fb5edb108?, 0x400009af30)
/root/go/pkg/mod/github.com/sagernet/[email protected]/common/bufio/conn.go:430 +0x5c
github.com/sagernet/sing/common/bufio.CopyExtendedBuffer({0x5563ed9fd8, 0x400020e7b0}, {0x5563ed9fb0, 0x400020e7c0}, 0x400009af30)
/root/go/pkg/mod/github.com/sagernet/[email protected]/common/bufio/conn.go:74 +0xf0
github.com/sagernet/sing/common/bufio.CopyExtended({0x5563ed9fd8?, 0x400020e7b0}, {0x5563ed9fb0?, 0x400020e7c0})
/root/go/pkg/mod/github.com/sagernet/[email protected]/common/bufio/conn.go:66 +0x18c
github.com/sagernet/sing/common/bufio.Copy({0x5563ed9240, 0x400020e7a0}, {0x7f8ef902f8?, 0x400009ae10?})
/root/go/pkg/mod/github.com/sagernet/[email protected]/common/bufio/conn.go:51 +0x270
github.com/sagernet/sing/common/bufio.(*readOnlyReader).WriteTo(0x4000042538?, {0x5563ed9240?, 0x400020e7a0?})
/root/go/pkg/mod/github.com/sagernet/[email protected]/common/bufio/conn.go:23 +0x3c
io.copyBuffer({0x5563ed9240, 0x400020e7a0}, {0x5563ed8780, 0x400020e790}, {0x0, 0x0, 0x0})
/usr/local/go/src/io/io.go:408 +0x128
io.Copy(...)
/usr/local/go/src/io/io.go:385
net.genericReadFrom({0x5563ed8a00?, 0x400021e078?}, {0x5563ed8780, 0x400020e790})
/usr/local/go/src/net/net.go:662 +0x6c
net.(*TCPConn).readFrom(0x400021e078, {0x5563ed8780, 0x400020e790})
/usr/local/go/src/net/tcpsock_posix.go:54 +0x74
net.(*TCPConn).ReadFrom(0x400021e078, {0x5563ed8780?, 0x400020e790?})
/usr/local/go/src/net/tcpsock.go:130 +0x34
github.com/sagernet/sing/common/bufio.Copy({0x5563ed8a00, 0x400021e078}, {0x7f8ef902f8?, 0x400009ae10?})
/root/go/pkg/mod/github.com/sagernet/[email protected]/common/bufio/conn.go:49 +0x188
github.com/sagernet/sing/common/bufio.CopyConn.func2()
/root/go/pkg/mod/github.com/sagernet/[email protected]/common/bufio/conn.go:131 +0xf4
github.com/sagernet/sing/common/task.Run.func1()
/root/go/pkg/mod/github.com/sagernet/[email protected]/common/task/task.go:18 +0x48
created by github.com/sagernet/sing/common/task.Run
/root/go/pkg/mod/github.com/sagernet/[email protected]/common/task/task.go:17 +0xf4
goroutine 178 [IO wait]:
internal/poll.runtime_pollWait(0x7f8f1614a8, 0x72)
/usr/local/go/src/runtime/netpoll.go:302 +0xa4
internal/poll.(*pollDesc).wait(0x400021c780?, 0x40001aa549?, 0x0)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:83 +0x2c
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:88
internal/poll.(*FD).Read(0x400021c780, {0x40001aa549, 0x1, 0x1})
/usr/local/go/src/internal/poll/fd_unix.go:167 +0x1e4
net.(*netFD).Read(0x400021c780, {0x40001aa549?, 0x40001f75e8?, 0x5563b55844?})
/usr/local/go/src/net/fd_posix.go:55 +0x2c
net.(*conn).Read(0x400021e0c8, {0x40001aa549?, 0x40001f7618?, 0x5563db15d8?})
/usr/local/go/src/net/net.go:183 +0x38
io.ReadAtLeast({0x5563ed89c0, 0x400021e0c8}, {0x40001aa549, 0x1, 0x1}, 0x1)
/usr/local/go/src/io/io.go:331 +0xa4
io.ReadFull(...)
/usr/local/go/src/io/io.go:350
github.com/sagernet/sing/common/rw.ReadByte({0x5563ed89c0, 0x400021e0c8})
/root/go/pkg/mod/github.com/sagernet/[email protected]/common/rw/read.go:22 +0x68
github.com/sagernet/sing/protocol/socks/socks4.readString({0x5563ed89c0, 0x400021e0c8})
/root/go/pkg/mod/github.com/sagernet/[email protected]/protocol/socks/socks4/protocol.go:160 +0x4c
github.com/sagernet/sing/protocol/socks/socks4.ReadRequest0({0x5563ed89c0, 0x400021e0c8})
/root/go/pkg/mod/github.com/sagernet/[email protected]/protocol/socks/socks4/protocol.go:67 +0x184
github.com/sagernet/sing/protocol/socks.HandleConnection0({0x5563edb730?, 0x4000024080}, {0x5563edcc28?, 0x400021e0c8}, 0xe8?, {0x0?, 0x0?}, {0x7f8ef90028?, 0x40001010b0}, {{0x5563a95220, ...}, ...})
/root/go/pkg/mod/github.com/sagernet/[email protected]/protocol/socks/handshake.go:108 +0x10c
github.com/sagernet/sing/transport/mixed.(*Listener).NewConnection(0x4000020230, {0x5563edb730, 0x4000024080}, {0x5563edcc28, 0x400021e0c8?}, {{0x5563a95220, 0x3}, {{{0x0, 0xffffc0a81ffe}, 0x400000e030}, ...}, ...})
/root/go/pkg/mod/github.com/sagernet/[email protected]/transport/mixed/listener.go:65 +0x998
github.com/sagernet/sing/transport/tcp.(*Listener).loop.func1()
/root/go/pkg/mod/github.com/sagernet/[email protected]/transport/tcp/listener.go:97 +0xa8
created by github.com/sagernet/sing/transport/tcp.(*Listener).loop
/root/go/pkg/mod/github.com/sagernet/[email protected]/transport/tcp/listener.go:95 +0x30