aboutsummaryrefslogtreecommitdiff
path: root/src/nng.h
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2016-12-22 21:34:49 -0800
committerGarrett D'Amore <garrett@damore.org>2016-12-22 21:34:49 -0800
commit29628309ae018c3f317eef9b03625d4ce3807a92 (patch)
tree35f4df616b15f8e343a25b095c4ab76242275841 /src/nng.h
parent32cfbaccd7ac89c00207e5d1345d23abf455ce16 (diff)
downloadnng-29628309ae018c3f317eef9b03625d4ce3807a92.tar.gz
nng-29628309ae018c3f317eef9b03625d4ce3807a92.tar.bz2
nng-29628309ae018c3f317eef9b03625d4ce3807a92.zip
Added lingering (1s default.)
Diffstat (limited to 'src/nng.h')
-rw-r--r--src/nng.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nng.h b/src/nng.h
index ccd86384..6d3296d8 100644
--- a/src/nng.h
+++ b/src/nng.h
@@ -346,6 +346,11 @@ NNG_DECL int nng_device(nng_socket *, nng_socket *);
// This limit is built into other implementations, so do not change it.
#define NNG_MAXADDRLEN (128)
+// Default linger time in microseconds. The framework will wait up until
+// this long for outgoing message queues to drain before closing underlying
+// connections, when closing the socket itself.
+#define NNG_LINGER_DEFAULT (1000000)
+
#ifdef __cplusplus
}
#endif