Skip to content
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

[FIXED] Closing connection on max subscriptions exceeded #1709

Merged
merged 1 commit into from
Oct 18, 2024

Conversation

piotrpio
Copy link
Collaborator

@piotrpio piotrpio commented Sep 2, 2024

Signed-off-by: Piotr Piotrowski piotr@synadia.com

@coveralls
Copy link

coveralls commented Sep 5, 2024

Coverage Status

coverage: 84.855% (-0.006%) from 84.861%
when pulling aff4d89 on server-err-handling
into c7cf345 on main.

@wallyqs
Copy link
Member

wallyqs commented Sep 5, 2024

any other side effect from the changes? seems this also now avoids closing when creating an invalid subscription?

@derekcollison
Copy link
Member

Just checking, when we get this error we should not be closing the connection from the client side.

@piotrpio
Copy link
Collaborator Author

@derekcollison correct, this used to be the case but this change will cause it to just invoke error callback.

Copy link
Member

@wallyqs wallyqs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@fmontorsi-equinix
Copy link
Contributor

hey @piotrpio ,
I actually stumbled on this PR and I wonder if this might fix the behavior I described at nats-io/nats-server#5994 . In particular I'm trying to understand why my consumers are stopping processing shortly after receiving the "nats: Exceeded MaxWaiting" error...
Do you think this PR would restore processing in the consumers that received that "nats: Exceeded MaxWaiting" error?
thanks

@Jarema
Copy link
Member

Jarema commented Oct 14, 2024

This one is about subscriptions, not max_waiting in pull requests, so I doubt its related.

Signed-off-by: Piotr Piotrowski <piotr@synadia.com>
Copy link
Member

@Jarema Jarema left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@piotrpio piotrpio merged commit ee22dc4 into main Oct 18, 2024
6 checks passed
@piotrpio piotrpio deleted the server-err-handling branch October 18, 2024 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants