|
楼主 |
发表于 2008-11-12 12:23:43
|
显示全部楼层
连接数好像是解决了,运行也无大问题(没有更加详细的测试)。但程序退出时又报了个错,错误在select_reactor_t.cpp:
// If there are any bits enabled in the <ready_set_> then we'll
// handle those first, otherwise we'll block in <select>.
if (number_of_active_handles == 0)
{
do
{
this_timeout =
this->timer_queue_->calculate_timeout (max_wait_time,
&timer_buf);这一句出错
width = (u_long) this->handler_rep_.max_handlep1 ();
dispatch_set.rd_mask_ = this->wait_set_.rd_mask_;
dispatch_set.wr_mask_ = this->wait_set_.wr_mask_;
dispatch_set.ex_mask_ = this->wait_set_.ex_mask_;
number_of_active_handles = ACE_OS::select (int (width),
dispatch_set.rd_mask_,
dispatch_set.wr_mask_,
dispatch_set.ex_mask_,
this_timeout);
}
while (number_of_active_handles == -1 && this->handle_error () > 0);
不明白啥意思? |
|