a better fix for problem 123
This commit is contained in:
parent
114257e872
commit
454396e5cc
@ -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)) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user