Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CHANGED] JS: Do not set MaxAckPending to high value on Subscribe
When calling js.Subscribe() (or equivalent) and the library ended-up creating the JS consumer, a MaxAckPending was set to a very high value in some cases. We now let the server pick the default if the value is not explicitly set by the user. The NATS subscription pending limits are set in a way to ensure that the subscription can store at least the max ack pending value. Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
- Loading branch information
Showing
1 changed file
with
18 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters