Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Concurrency issues can occur when using this framework for websocket transfers #119

Closed
chenbaoding2818 opened this issue May 10, 2024 · 1 comment

Comments

@chenbaoding2818
Copy link

chenbaoding2818 commented May 10, 2024

WARNING: DATA RACE
Read at 0x00c0004610f8 by goroutine 14:
github.com/gorilla/websocket.(*Conn).beginMessage()
/Users/vendor/github.com/gorilla/websocket/conn.go:472 +0x65
github.com/gorilla/websocket.(*Conn).WriteMessage()
/Users/vendor/github.com/gorilla/websocket/conn.go:757 +0xf9
github.com/apache/dubbo-getty.(*gettyWSConn).writePing()
/Users/vendor/github.com/apache/dubbo-getty/connection.go:627 +0x68
github.com/apache/dubbo-getty.heartbeat.func1()
/Users/vendor/github.com/apache/dubbo-getty/session.go:519 +0x6d
github.com/apache/dubbo-getty.heartbeat()
/Users/vendor/github.com/apache/dubbo-getty/session.go:533 +0x167
github.com/dubbogo/gost/time.(*TimerWheel).run()
/Users/vendor/github.com/dubbogo/gost/time/timer.go:281 +0x2b9
github.com/dubbogo/gost/time.NewTimerWheel.func1()
/Users/vendor/github.com/dubbogo/gost/time/timer.go:216 +0x4a4

Previous write at 0x00c0004610f8 by goroutine 7976:
github.com/gorilla/websocket.(*messageWriter).endMessage()
/Users/vendor/github.com/gorilla/websocket/conn.go:539 +0xcd
github.com/gorilla/websocket.(*messageWriter).flushFrame()
/Users/vendor/github.com/gorilla/websocket/conn.go:626 +0xb85
github.com/gorilla/websocket.(*Conn).WriteMessage()
/Users/vendor/github.com/gorilla/websocket/conn.go:763 +0x1d0
github.com/apache/dubbo-getty.(*gettyWSConn).send()
/Users/vendor/github.com/apache/dubbo-getty/connection.go:618 +0x117
github.com/apache/dubbo-getty.(*session).WritePkg()
/Users/vendor/github.com/apache/dubbo-getty/session.go:408 +0x3a7
server/common/net.(*Session).Write()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant