-
Notifications
You must be signed in to change notification settings - Fork 688
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIXED] Added jitter in the reconnect logic
When library would wait for the reconnect wait interval, it will now wait for a random time bounded by this value. This prevents thundering herd reconnect issue, especially with TLS. Resolves #563 Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
- Loading branch information
Showing
4 changed files
with
114 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,12 @@ | ||
module github.com/nats-io/nats.go | ||
|
||
require ( | ||
github.com/golang/protobuf v1.4.0 | ||
github.com/nats-io/jwt v0.3.2 | ||
github.com/nats-io/nats-server/v2 v2.1.6 | ||
github.com/nats-io/nkeys v0.1.4 | ||
github.com/nats-io/nuid v1.0.1 | ||
google.golang.org/protobuf v1.21.0 | ||
) | ||
|
||
go 1.13 |
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
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