aboutsummaryrefslogtreecommitdiff
path: root/src/nng.h
diff options
context:
space:
mode:
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