From e27571c0cfdd83aa839b7f30e2fb6911fbb944d1 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sat, 27 Nov 2021 18:42:54 -0800 Subject: fixes #1526 NNG_USE_CLOCKID Bug? This makes CLOCK_MONOTONIC the default (as it should have been) for platforms that have it defined, except for Apple platforms which lack support for using anything other than the real time clock with condition variables. (And unfortunately silently ignore attempts to do otherwise.) --- src/testing/marry.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/testing/marry.c') diff --git a/src/testing/marry.c b/src/testing/marry.c index be109b7d..2fc0e9ac 100644 --- a/src/testing/marry.c +++ b/src/testing/marry.c @@ -281,6 +281,10 @@ nuts_marry_ex( replace_port_zero(url, addr, port); url = addr; } + if (((rv = nng_setopt_ms(s2, NNG_OPT_RECONNMINT, 10)) != 0) || + ((rv = nng_setopt_ms(s2, NNG_OPT_RECONNMAXT, 10)) != 0)) { + goto done; + } if ((rv = nng_dial(s2, url, NULL, 0)) != 0) { goto done; } -- cgit v1.2.3-70-g09d2