Bump catchup flow control max outstanding bytes

Signed-off-by: Derek Collison <derek@nats.io>
This commit is contained in:
Derek Collison
2022-04-13 12:05:21 -07:00
parent 08d1507c50
commit cd8aeab4ea

View File

@@ -6273,7 +6273,7 @@ func (mset *stream) runCatchup(sendSubject string, sreq *streamSyncRequest) {
s := mset.srv
defer s.grWG.Done()
const maxOutBytes = int64(defaultMediumBlockSize) // 2MB for now.
const maxOutBytes = int64(32 * 1024 * 1024) // 32MB for now, these are all internal, from server to server
outb := int64(0)
// On abnormal exit make sure to update global total.