From c52fdf5b16f18339c1ea42da876e3edb786494d5 Mon Sep 17 00:00:00 2001 From: Andre Date: Sun, 30 Apr 2006 01:28:17 +0200 Subject: [PATCH] 1000 * 1000 microseconds is too much for Darwin linux never complained about that, but Darwin returns -EINVAL. --- recv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recv.c b/recv.c index 95711f1f..af15eb07 100644 --- a/recv.c +++ b/recv.c @@ -82,12 +82,12 @@ recv: 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; -- 2.39.5