yuzhenboy
Results
1
issues of
yuzhenboy
ubuntu 16.04 使用的是muduo c++11版 目的在没有接收到信息超过2分钟后,会调用forceClose强制断开连接,然后收到注册的连接回调函数的断联消息后,就会崩溃,初步分析只有在发命令的时候偶尔会发生这种情况,在没有发命令的时候,没有出现过,现在我的处理是:在准备关闭连接之前提早将连接标志位置false,使得不会在发送命令,过几秒后,再调用forceClose函数。 崩溃函数: void EPollPoller::updateChannel(Channel* channel) { Poller::assertInLoopThread(); const int index = channel->index(); if (index == kNew || index == kDeleted) { // a new one, add...