同时开几百个客户端出现奔溃,大神帮忙看看。
goroutine 935 [IO wait]:
internal/poll.runtime_pollWait(0x7fa51f17b400, 0x72, 0x0)
C:/Go/src/runtime/netpoll.go:173 +0x57
internal/poll.(*pollDesc).wait(0xc420432a98, 0x72, 0xffffffffffffff00, 0xf42ba0, 0xf3c6b8)
C:/Go/src/internal/poll/fd_poll_runtime.go:85 +0xae
internal/poll.(*pollDesc).waitRead(0xc420432a98, 0xc42052a700, 0x2, 0x4)
C:/Go/src/internal/poll/fd_poll_runtime.go:90 +0x3d
internal/poll.(*FD).Read(0xc420432a80, 0xc42052a700, 0x2, 0x4, 0x0, 0x0, 0x0)
C:/Go/src/internal/poll/fd_unix.go:126 +0x18a
net.(*netFD).Read(0xc420432a80, 0xc42052a700, 0x2, 0x4, 0xc42145bdd8, 0xc42145bd50, 0x3)
C:/Go/src/net/fd_unix.go:202 +0x52
net.(*conn).Read(0xc420532560, 0xc42052a700, 0x2, 0x4, 0x0, 0x0, 0x0)
C:/Go/src/net/net.go:176 +0x6d
github.com/name5566/leaf/network.(*TCPConn).Read(0xc420fb7d40, 0xc42052a700, 0x2, 0x4, 0xc42052a700, 0xc42145bdf8, 0x0)
D:/goprojects/src/github.com/name5566/leaf/network/tcp_conn.go:96 +0x52
io.ReadAtLeast(0xf40720, 0xc420fb7d40, 0xc42052a700, 0x2, 0x4, 0x2, 0xa966c0, 0xc4201b4201, 0xc42052a700)
C:/Go/src/io/io.go:309 +0x86
io.ReadFull(0xf40720, 0xc420fb7d40, 0xc42052a700, 0x2, 0x4, 0xc420172f60, 0xc421636fc2, 0x2b)
C:/Go/src/io/io.go:327 +0x58
github.com/name5566/leaf/network.(*MsgParser).Read(0xc42040fec0, 0xc420fb7d40, 0xc421636fc0, 0x0, 0x0, 0x0, 0x0)
D:/goprojects/src/github.com/name5566/leaf/network/tcp_msg.go:70 +0x85
github.com/name5566/leaf/network.(*TCPConn).ReadMsg(0xc420fb7d40, 0xb38da0, 0xc42163c510, 0xb386a0, 0xc420fb7d70, 0x0)
D:/goprojects/src/github.com/name5566/leaf/network/tcp_conn.go:108 +0x34
github.com/name5566/leaf/gate.(*agent).Run(0xc420fb7d70)
D:/goprojects/src/github.com/name5566/leaf/gate/gate.go:94 +0x3a
github.com/name5566/leaf/network.(*TCPServer).run.func1(0xf44160, 0xc420fb7d70, 0xc420fb7d40, 0xc42051a000, 0xf4b7a0, 0xc420532560)
D:/goprojects/src/github.com/name5566/leaf/network/tcp_server.go:102 +0x35
created by github.com/name5566/leaf/network.(*TCPServer).run
D:/goprojects/src/github.com/name5566/leaf/network/tcp_server.go:101 +0x40a