mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
Tweak ordered consumer flow control and bump to beta.18
Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user