a better fix for problem 123

This commit is contained in:
mom040267 2014-04-24 01:36:13 +00:00
parent 114257e872
commit 454396e5cc

View File

@ -2687,12 +2687,12 @@ static void socket_input_handler_bev(struct bufferevent *bev, void* arg)
size_t cycle = 0;
do {
if(ioa_socket_tobeclosed(s)) {
read_spare_buffer_bev(bev);
read_spare_buffer_bev(s->bev);
break;
}
if (socket_input_worker(s) <= 0)
break;
} while(cycle++<128);
} while((cycle++<128) && (s->bev));
}
if((s->magic != SOCKET_MAGIC)||(s->done)) {