Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIXED] Avoid possible duplicate redeliveries after message is ack'ed
If the streaming server is connecting to a standalone NATS Server, and the streaming server is redelivering messages, if a disconnect occurs, these redeliveries may be buffered by the NATS client library used by the Streaming server. When the NATS Server is restarted and the Streaming server reconnects, the pending buffer is flushed, which if the client has reconnected before the server, would cause the client to receive possibly a serie of the same redelivered messages, even if the client is ack'ing them. To prevent this, set the reconnect buffer to -1 to prevent any buffering.
- Loading branch information
Showing
2 changed files
with
87 additions
and
6 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
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