Skip to content

Commit

Permalink
添加服务器间通讯对数据接收处理的自动检测,如果有会输出信息。
Browse files Browse the repository at this point in the history
  • Loading branch information
freeeyes committed Apr 8, 2016
1 parent 2e55769 commit 9f2e5b5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -678,6 +678,11 @@ int CClientProConnectManager::handle_timeout(const ACE_Time_Value &tv, const voi
pClientInfo->Run(m_blProactorFinish, SERVER_CONNECT_RECONNECT);

}
else
{
//检查当前连接,是否已挂起或死锁
pClientInfo->GetProConnectClient()->GetTimeout();
}
}

//OUR_DEBUG((LM_DEBUG, "[CClientProConnectManager::handle_timeout]End.\n"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -688,6 +688,11 @@ int CClientReConnectManager::handle_timeout(const ACE_Time_Value& tv, const void
//如果连接不存在,则重新建立连接
pClientInfo->Run(m_blReactorFinish, SERVER_CONNECT_RECONNECT);
}
else
{
//检查当前连接,是否已挂起或死锁
pClientInfo->GetConnectClient()->GetTimeout();
}
}

return 0;
Expand Down

0 comments on commit 9f2e5b5

Please sign in to comment.