diff options
Diffstat (limited to 'demo/async/client.c')
| -rw-r--r-- | demo/async/client.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/demo/async/client.c b/demo/async/client.c index 90fce164..33ab9b36 100644 --- a/demo/async/client.c +++ b/demo/async/client.c @@ -53,7 +53,8 @@ client(const char *url, const char *msecstr) fatal("nng_req0_open", rv); } - if ((rv = nng_dial(sock, url, NULL, 0)) != 0) { + if ((rv = nng_dial(sock, url, NULL, + getenv("NONBLOCK") ? NNG_FLAG_NONBLOCK : 0)) != 0) { fatal("nng_dial", rv); } |
