We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
O(1)
这段代码是什么语义呢,为什么每定时器触发一次就清空一次连接对象呢
void TimerWheel::wheelCallback() { if(!timeoutSec_) return; if(++index_ ==timeoutSec_) { index_=0; } wheel[index_].clear(); }
The text was updated successfully, but these errors were encountered:
设置心跳超时秒数时间内,如果服务端没有收到客户端发送的消息,则主动断开客户端连接。这里是利用RAII在析构函数里面做断开连接操作。
Sorry, something went wrong.
No branches or pull requests
这段代码是什么语义呢,为什么每定时器触发一次就清空一次连接对象呢
The text was updated successfully, but these errors were encountered: