mirror of
https://github.com/corda/corda.git
synced 2025-01-19 11:16:54 +00:00
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:
parent
7e64bb9f42
commit
bc1c797911
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user