From 63479c2938cbc80c1aac9367cb95564f6e7540e1 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Mon, 14 Aug 2017 15:27:38 -0700 Subject: fixes #63 NNG_FLAG_SYNCH should be the default Also enables creating endpoints that are idle (first part of endpoint options API) and shutting down endpoints. --- tests/scalability.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/scalability.c') diff --git a/tests/scalability.c b/tests/scalability.c index e9422f8e..a7347343 100644 --- a/tests/scalability.c +++ b/tests/scalability.c @@ -61,7 +61,7 @@ openclients(nng_socket *clients, int num) "setopt(SNDTIMEO) #%d: %s\n", i, nng_strerror(rv)); return (rv); } - rv = nng_dial(clients[i], addr, NULL, NNG_FLAG_SYNCH); + rv = nng_dial(clients[i], addr, NULL, 0); if (rv != 0) { printf("dial #%d: %s\n", i, nng_strerror(rv)); return (rv); @@ -123,7 +123,7 @@ Main({ if ((nng_rep_open(&rep) != 0) || (nng_setopt(rep, NNG_OPT_RCVBUF, &depth, sizeof(depth)) != 0) || (nng_setopt(rep, NNG_OPT_SNDBUF, &depth, sizeof(depth)) != 0) || - (nng_listen(rep, addr, NULL, NNG_FLAG_SYNCH) != 0) || + (nng_listen(rep, addr, NULL, 0) != 0) || (nng_thread_create(&server, serve, &rep) != 0)) { fprintf(stderr, "Unable to set up server!\n"); exit(1); -- cgit v1.2.3-70-g09d2