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
Writing data more frequently will cause panic #182
Comments
Show me the code |
Will you give me a complete demo code, which can reproduce this issue? It's hard to figure out what you want to do from an image. |
============ socketio.client.html
|
that would trigger panic: concurrent write to websocket connection. thx |
@pangdahua @googollee I met the same issue. Have you fix this(not by comment out PING message) |
why use RLock() when write message in /go-engine.io.v1/session.go, why not use Lock()? @googollee
|
@googollee panic: concurrent write to websocket connection goroutine 22 [running]: |
因为使用的 读合写,会同时竞争websocket, 而gorilla的websocket不支持并发操作 |
请问 楼上各位怎么解决的? |
一直不敢升级,下次出稳定版了,记得打个标签! |
请问 楼上用的是什么版本的? |
你们并发读写的问题解决了吗 |
1 similar comment
你们并发读写的问题解决了吗 |
Your application is writing concurrently to a connection. Concurrent writes are not supported. Use a mutex or a goroutine to ensure that there's no more than one writer at a time. |
你们并发读写的问题解决了吗 |
@wangtuanjie @erkie Is it problem resolved? |
sure |
Resolved |
发现如果数据发送的比较频繁,会导致与ping的数据写时并发,go race 在大量的客户端的情况下,会引起websocket的写并发panic。
The text was updated successfully, but these errors were encountered: