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

[ADDED] Ability to suppress echos from your own connection #698

Merged
merged 3 commits into from Jun 29, 2018

Conversation

derekcollison
Copy link
Member

Resolves #453

/cc @nats-io/core

Signed-off-by: Derek Collison <derek@nats.io>
Signed-off-by: Derek Collison <derek@nats.io>
@coveralls
Copy link

Coverage Status

Coverage increased (+0.1%) to 92.425% when pulling 535367e on echo into e17ccb8 on master.

@kozlovic kozlovic changed the title Ability to suppress echos from your own connection. [ADDED] Ability to suppress echos from your own connection Jun 29, 2018
Copy link
Member

@kozlovic kozlovic left a comment

Choose a reason for hiding this comment

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

LGTM

@derekcollison
Copy link
Member Author

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.

@kozlovic
Copy link
Member

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?

@derekcollison
Copy link
Member Author

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 <derek@nats.io>
Copy link
Member

@kozlovic kozlovic left a comment

Choose a reason for hiding this comment

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

LGTM

@aricart
Copy link
Member

aricart commented Jul 20, 2018

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 required vs optional, the client can progress on the connection, but the duplicate messages will be received (behaviour since the beginning of time).

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.

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.

None yet

4 participants