-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[ADDED] Ability to suppress echos from your own connection #698
Conversation
Signed-off-by: Derek Collison <[email protected]>
Signed-off-by: Derek Collison <[email protected]>
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
I want to check on how clients interact with older server. May want to bump proto like we did for async INFO to allow clients to check before sending and not getting the result they want. |
Ok, that would work on a connect where we can fail the connection saying that the server is not supporting that feature, but for a reconnect, what do we do? Say you connect to a server supporting echo, then it stops and the next server does not. Do you fail the reconnect? |
I would expect that to be a rare situation, but let me think about it. Client could through async err indicating echo not supported on connected server. More client work I think. |
Signed-off-by: Derek Collison <[email protected]>
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
the main issue with this feature being a client option is that, if the server doesn't provide the feature, and the option is set, the client will have to raise an error and still cope with the lack of the feature. The error can be mitigated if the client configuration specifies If this setting was a server configuration that is transmitted to the client, existing clients would break, but the fix is one that the client could handle automatically by creating a second connection where those subscriptions can be processed. In my mind, this is an easier paradigm to migrate code. |
Resolves #453
/cc @nats-io/core