-
Notifications
You must be signed in to change notification settings - Fork 711
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deprecate encoded connections #1674
Merged
Merged
Conversation
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 fixes an issue where a deadlock could occur when calling `Stop()` or `Drain()` on `ConsumeContext` or `MessagesContext` and then calling `Consume` or `Messages` immediately. Switched to using a type-safe implementation of `sync.Map` for subscriptions map instead of locking the whole consumer state. Additionally, changed the type of atomic flags from `uint32` to `atomic.UInt32` to avoid acciental non-atomic reads/writes. Signed-off-by: Piotr Piotrowski <[email protected]>
Signed-off-by: Piotr Piotrowski <[email protected]>
This reverts commit 753229d.
Signed-off-by: Piotr Piotrowski <[email protected]>
12 tasks
Jarema
approved these changes
Jul 23, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Merged
piotrpio
added a commit
that referenced
this pull request
Aug 15, 2024
Signed-off-by: Piotr Piotrowski <[email protected]>
piotrpio
added a commit
that referenced
this pull request
Aug 15, 2024
Signed-off-by: Piotr Piotrowski <[email protected]>
piotrpio
added a commit
that referenced
this pull request
Dec 13, 2024
Signed-off-by: Piotr Piotrowski <[email protected]>
piotrpio
added a commit
that referenced
this pull request
Dec 13, 2024
Signed-off-by: Piotr Piotrowski <[email protected]>
derekcollison
added a commit
to nats-io/nats-server
that referenced
this pull request
Feb 6, 2025
Updated nats.go to v1.39.0. - nats-io/nats.go#1674 - nats-io/nats.go#1709 Fixed the connection not being closed on exceeding subs, so using `nats.ErrorHandler` instead of `nats.DisconnectErrHandler`. - nats-io/nats.go#1728 Changed `nats: Permissions Violation for ...` to `nats: permissions violation: Permissions Violation for ...`, so `strings.HasPrefix` checks (and others) have been updated. Signed-off-by: Maurice van Veen <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Addresses nats-io/nats-architecture-and-design#291
Signed-off-by: Piotr Piotrowski [email protected]