Tweak ordered consumer flow control and bump to beta.18

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
This commit is contained in:
Ivan Kozlovic
2022-04-14 17:43:43 -06:00
parent 09609a4d63
commit 0e841d4acf
2 changed files with 3 additions and 3 deletions

View File

@@ -41,7 +41,7 @@ var (
const (
// VERSION is the current version for the server.
VERSION = "2.8.0-beta.17"
VERSION = "2.8.0-beta.18"
// PROTO is the currently supported protocol.
// 0 was the original

View File

@@ -295,7 +295,7 @@ const (
JsDeleteWaitTimeDefault = 5 * time.Second
// JsFlowControlMaxPending specifies default pending bytes during flow control that can be
// outstanding.
JsFlowControlMaxPending = 32 * 1024 * 1024
JsFlowControlMaxPending = 16 * 1024 * 1024
// JsDefaultMaxAckPending is set for consumers with explicit ack that do not set the max ack pending.
JsDefaultMaxAckPending = 1000
)
@@ -3044,7 +3044,7 @@ func (o *consumer) ackReply(sseq, dseq, dc uint64, ts int64, pending uint64) str
// Used mostly for testing. Sets max pending bytes for flow control setups.
func (o *consumer) setMaxPendingBytes(limit int) {
o.pblimit = limit
o.maxpb = limit / 4
o.maxpb = limit / 16
if o.maxpb == 0 {
o.maxpb = 1
}