don't use INT32_MAX for "infinite" select

OS X's select implementation doesn't like a number that big, so now we
use 24 hours instead.
This commit is contained in:
Joel Dice 2012-07-03 11:17:51 -06:00
parent 7e64bb9f42
commit bc1c797911

View File

@ -771,7 +771,7 @@ Java_java_nio_channels_SocketSelector_natDoSocketSelect(JNIEnv *e, jclass,
time.tv_sec = 0;
time.tv_usec = 0;
} else {
time.tv_sec = INT32_MAX;
time.tv_sec = 24 * 60 * 60 * 1000;
time.tv_usec = 0;
}
int r = ::select(max + 1, &(s->read), &(s->write), &(s->except), &time);