-
Notifications
You must be signed in to change notification settings - Fork 198
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
keepalive bug #12
Comments
如果是因为断流的阻塞,那就应该阻塞。 |
写不出去了为什么不直接发起一个新的连接而是要阻塞在这里呢 |
你怎么知道阻塞了 |
用dlv看出来的 |
你先搞清楚什么叫阻塞。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
在 session 的实现中使用了一个 goroutine 来收发心跳我觉得是有问题的,当连接断流以后, writeFrame 函数就会阻塞 keepalive 这个 goroutine, 建议心跳的收发各用一个 goroutine 或者给 writeFrame 增加超时机制.
The text was updated successfully, but these errors were encountered: