Closed xtuc closed 7 years ago
2017/07/03 11:32:59 http: panic serving 127.0.0.1:42990: concurrent write to websocket connection goroutine 169913 [running]: net/http.(*conn).serve.func1(0xc420120b40) /usr/local/go/src/net/http/server.go:1721 +0xd0 panic(0x66bfe0, 0xc420011d60) /usr/local/go/src/runtime/panic.go:489 +0x2cf github.com/gorilla/websocket.(*messageWriter).flushFrame(0xc42012e840, 0x1, 0x0, 0x0, 0x0, 0xc42008c370, 0xc42008c390) /go/src/github.com/gorilla/websocket/conn.go:585 +0x57b github.com/gorilla/websocket.(*messageWriter).Close(0xc42012e840, 0x6a87a0, 0xc42025c380) /go/src/github.com/gorilla/websocket/conn.go:699 +0x60 github.com/gorilla/websocket.(*Conn).WriteJSON(0xc4200c0140, 0x6a87a0, 0xc42025c380, 0xc42025c380, 0x0) /go/src/github.com/gorilla/websocket/json.go:27 +0x112 github.com/bytearena/bytearena/common/mq.(*Client).Publish(0xc4200115a0, 0x6d22e2, 0x4, 0x6d22e2, 0x4, 0x0, 0x0, 0x69f1a0, 0x45467d37) /go/src/github.com/bytearena/bytearena/common/mq/client.go:91 +0x11d github.com/bytearena/bytearena/common/mq.(*Client).Ping(0xc4200115a0, 0xc420032c18, 0xc420032c10) /go/src/github.com/bytearena/bytearena/common/mq/client.go:102 +0x67 main.StartHealthCheck.func1(0x680c60, 0xc4200173e0, 0xc420032c08) /go/src/github.com/bytearena/bytearena/cmd/arena-master/healthcheck.go:12 +0x2a github.com/bytearena/bytearena/common/healthcheck.(*HealthCheckServer).httpHandler(0xc4200b2c20, 0x7f8160, 0xc4200d10a0, 0xc420124700) /go/src/github.com/bytearena/bytearena/common/healthcheck/healthcheck.go:35 +0x124 github.com/bytearena/bytearena/common/healthcheck.(*HealthCheckServer).(github.com/bytearena/bytearena/common/healthcheck.httpHandler)-fm(0x7f8160, 0xc4200d10a0, 0xc420124700) /go/src/github.com/bytearena/bytearena/common/healthcheck/healthcheck.go:71 +0x48 net/http.HandlerFunc.ServeHTTP(0xc4200115c0, 0x7f8160, 0xc4200d10a0, 0xc420124700) /usr/local/go/src/net/http/server.go:1942 +0x44 net/http.(*ServeMux).ServeHTTP(0x8242e0, 0x7f8160, 0xc4200d10a0, 0xc420124700) /usr/local/go/src/net/http/server.go:2238 +0x130 net/http.serverHandler.ServeHTTP(0xc42008c2c0, 0x7f8160, 0xc4200d10a0, 0xc420124700) /usr/local/go/src/net/http/server.go:2568 +0x92 net/http.(*conn).serve(0xc420120b40, 0x7f8620, 0xc42025c280) /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
related to #71
related to #71