FD_ZERO(&rfds);
FD_ZERO(&wfds);
timeout.tv_sec = 0;
- timeout.tv_usec = 1000 * 1000;
+ timeout.tv_usec = 999 * 1000;
max = -1;
ret = r->pre_select(&rn, &rfds, &wfds, &timeout);
max = PARA_MAX(max, ret);
- PARA_DEBUG_LOG("timeout: %lums\n", tv2ms(&timeout));
+ PARA_DEBUG_LOG("timeout: %lums, max: %d\n", tv2ms(&timeout), max);
ret = para_select(max + 1, &rfds, &wfds, &timeout);
if (ret < 0) {
ret = -E_RECV_SELECT;