Closed xtuc closed 7 years ago
2017/08/11 10:14:23 http: panic serving 127.0.0.1:34414: concurrent write to websocket connection goroutine 359590 [running]: net/http.(*conn).serve.func1(0xc420086be0) /usr/local/go/src/net/http/server.go:1721 +0xd0 panic(0x677000, 0xc420011280) /usr/local/go/src/runtime/panic.go:489 +0x2cf github.com/bytearena/bytearena/vendor/github.com/gorilla/websocket.(*messageWriter).flushFrame(0xc4203a5680, 0x1, 0x0, 0x0, 0x0, 0xc420121a60, 0x5cea7a) /go/src/github.com/bytearena/bytearena/vendor/github.com/gorilla/websocket/conn.go:585 +0x57b github.com/bytearena/bytearena/vendor/github.com/gorilla/websocket.(*messageWriter).Close(0xc4203a5680, 0x42c0a4, 0xc420121928) /go/src/github.com/bytearena/bytearena/vendor/github.com/gorilla/websocket/conn.go:699 +0x60 github.com/bytearena/bytearena/vendor/github.com/gorilla/websocket.(*Conn).prepWrite(0xc420124140, 0x1, 0x6b4f60, 0xc42022ab60) /go/src/github.com/bytearena/bytearena/vendor/github.com/gorilla/websocket/conn.go:468 +0x10c github.com/bytearena/bytearena/vendor/github.com/gorilla/websocket.(*Conn).NextWriter(0xc420124140, 0x1, 0x7f3639692c20, 0x0, 0x4443a5, 0x0) /go/src/github.com/bytearena/bytearena/vendor/github.com/gorilla/websocket/conn.go:488 +0x39 github.com/bytearena/bytearena/vendor/github.com/gorilla/websocket.(*Conn).WriteJSON(0xc420124140, 0x6b4f60, 0xc420378180, 0xc420378180, 0xc420121b08) /go/src/github.com/bytearena/bytearena/vendor/github.com/gorilla/websocket/json.go:22 +0x49 github.com/bytearena/bytearena/common/mq.(*Client).Publish(0xc420016d80, 0x6df34c, 0x4, 0x6df34c, 0x4, 0x0, 0x0, 0x30, 0xc420466390) /go/src/github.com/bytearena/bytearena/common/mq/client.go:137 +0x11d github.com/bytearena/bytearena/common/mq.(*Client).Ping(0xc420016d80, 0x833cd0, 0x0) /go/src/github.com/bytearena/bytearena/common/mq/client.go:148 +0x67 main.NewHealthCheck.func1(0xc420121ca0, 0x853ef0) /go/src/github.com/bytearena/bytearena/cmd/arena-master/healthcheck.go:13 +0x2a github.com/bytearena/bytearena/common/healthcheck.(*HealthCheckServer).ServeHTTP(0xc4201122c0, 0x80b2c0, 0xc4201da540, 0xc42000b900) /go/src/github.com/bytearena/bytearena/common/healthcheck/healthcheck.go:38 +0x124 net/http.serverHandler.ServeHTTP(0xc420136000, 0x80b2c0, 0xc4201da540, 0xc42000b900) /usr/local/go/src/net/http/server.go:2568 +0x92 net/http.(*conn).serve(0xc420086be0, 0x80b740, 0xc4201171c0) /usr/local/go/src/net/http/server.go:1825 +0x612 created by net/http.(*Server).Serve /usr/local/go/src/net/http/server.go:2668 +0x2ce
71 #72