aboutsummaryrefslogtreecommitdiff
path: root/docs/man
diff options
context:
space:
mode:
authorNathan Kent <nate@nkent.net>2019-09-25 18:46:38 -0400
committerGarrett D'Amore <garrett@damore.org>2019-11-03 10:24:47 -0800
commit96b7677ddc8e49da045ca770703df065f10db280 (patch)
tree1302c0cf0298033bc408b1806a4c2260bb4b74b4 /docs/man
parent32d17517b87713e4d584555c35ac48d010243910 (diff)
downloadnng-96b7677ddc8e49da045ca770703df065f10db280.tar.gz
nng-96b7677ddc8e49da045ca770703df065f10db280.tar.bz2
nng-96b7677ddc8e49da045ca770703df065f10db280.zip
Add option for preferring new messages on SUB0
Diffstat (limited to 'docs/man')
-rw-r--r--docs/man/nng_sub.7.adoc7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/man/nng_sub.7.adoc b/docs/man/nng_sub.7.adoc
index cd9af727..aef1a9e4 100644
--- a/docs/man/nng_sub.7.adoc
+++ b/docs/man/nng_sub.7.adoc
@@ -73,6 +73,13 @@ TIP: To receive all messages, an empty topic (zero length) can be used.
Note that if the topic was not previously subscribed to with
`NNG_OPT_SUB_SUBSCRIBE` then an `NNG_ENOENT` error will result.
+((`NNG_OPT_SUB_PREFNEW`))::
+
+ (`bool`)
+ This read/write option specifies the behavior of the subscriber when the queue is full.
+ When `true` (the default), the subscriber will make room in the queue by removing the oldest message.
+ When `false`, the subscriber will reject messages if the message queue does not have room.
+
=== Protocol Headers
The _sub_ protocol has no protocol-specific headers.