aboutsummaryrefslogtreecommitdiff
path: root/src/core/reconnect_test.c
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2021-01-11 23:01:33 -0800
committerGarrett D'Amore <garrett@damore.org>2021-01-18 17:50:35 -0800
commit85dccbf083e3c6115c5e3757b8efb7aa069acab6 (patch)
treeb82ed18a069e3efd199efac6005e6f4a24d98649 /src/core/reconnect_test.c
parent35533f4b968fc14b80a085e0246aa3074c1dec6f (diff)
downloadnng-85dccbf083e3c6115c5e3757b8efb7aa069acab6.tar.gz
nng-85dccbf083e3c6115c5e3757b8efb7aa069acab6.tar.bz2
nng-85dccbf083e3c6115c5e3757b8efb7aa069acab6.zip
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.
Diffstat (limited to 'src/core/reconnect_test.c')
-rw-r--r--src/core/reconnect_test.c4
1 files changed, 4 insertions, 0 deletions
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");