From 96b7677ddc8e49da045ca770703df065f10db280 Mon Sep 17 00:00:00 2001 From: Nathan Kent Date: Wed, 25 Sep 2019 18:46:38 -0400 Subject: Add option for preferring new messages on SUB0 --- docs/man/nng_sub.7.adoc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'docs') 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. -- cgit v1.2.3-70-g09d2