网络传输时候报错,是不是网络库存在问题

goroutine 11821 [IO wait]:
net.runtime_pollWait(0x7f67a612bd90, 0x72, 0xe0)
        c:/go/src/runtime/netpoll.go:160 +0x59
net.(*pollDesc).wait(0xc4202d7560, 0x72, 0xc4203f96b8, 0xc42000e1b0)
        c:/go/src/net/fd_poll_runtime.go:73 +0x38
net.(*pollDesc).waitRead(0xc4202d7560, 0x89ae80, 0xc42000e1b0)
        c:/go/src/net/fd_poll_runtime.go:78 +0x34
net.(*netFD).Read(0xc4202d7500, 0xc420629000, 0x1000, 0x1000, 0x0, 0x89ae80, 0xc42000e1b0)
        c:/go/src/net/fd_unix.go:220 +0x1a1
net.(*conn).Read(0xc4200842a8, 0xc420629000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
        c:/go/src/net/net.go:173 +0x70
net/http.(*connReader).Read(0xc4201fa020, 0xc420629000, 0x1000, 0x1000, 0x9b5608, 0x45, 0xcd93c4)
        c:/go/src/net/http/server.go:586 +0x144
bufio.(*Reader).fill(0xc42041a8a0)
        c:/go/src/bufio/bufio.go:97 +0x10c
bufio.(*Reader).ReadByte(0xc42041a8a0, 0xc4200cab40, 0x44, 0xc0)
        c:/go/src/bufio/bufio.go:231 +0x51
code.google.com/p/go.net/websocket.hybiFrameReaderFactory.NewFrameReader(0xc42041a8a0, 0x77b3d0, 0xc42057c1d8, 0xc4203f9980, 0x455b0e)
code.google.com/p/go.net/websocket.Codec.Receive(0x77a598, 0x77a5a0, 0xc42057c1b0, 0x6c5100, 0xc4201366e0, 0x0, 0x0)

共 2 个回复


wenjiehou1114

你这个怎么解决的啊,我也报这个错误

# 0

sevenhe

代码贴一下,看这个难看出来。

# 1