diff options
| author | Garrett D'Amore <garrett@damore.org> | 2016-12-22 21:34:49 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2016-12-22 21:34:49 -0800 |
| commit | 29628309ae018c3f317eef9b03625d4ce3807a92 (patch) | |
| tree | 35f4df616b15f8e343a25b095c4ab76242275841 /src/nng.h | |
| parent | 32cfbaccd7ac89c00207e5d1345d23abf455ce16 (diff) | |
| download | nng-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.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 |
