From 85dccbf083e3c6115c5e3757b8efb7aa069acab6 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Mon, 11 Jan 2021 23:01:33 -0800 Subject: fixes #808 Very slow PAIR performance compared to nanomsg This is only the pair v1 protocol. Pair v0 and polyamorous mode still have work to do. We probably won't "fix" the performance for poly mode since that's deprecated anyway. --- src/core/reconnect_test.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/core/reconnect_test.c') diff --git a/src/core/reconnect_test.c b/src/core/reconnect_test.c index 308a3f78..120f0517 100644 --- a/src/core/reconnect_test.c +++ b/src/core/reconnect_test.c @@ -64,6 +64,10 @@ test_reconnect(void) // Close the listener NUTS_PASS(nng_listener_close(l)); + // We need to wait 100 ms, or so, to allow the receiver to + // the disconnect. + NUTS_SLEEP(100); + NUTS_PASS(nng_listen(s1, addr, &l, 0)); NUTS_SEND(s1, "again"); NUTS_RECV(s2, "again"); -- cgit v1.2.3-70-g09d2