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

Make sure we use correct MSG prefix #978

Merged
merged 2 commits into from May 1, 2019
Merged

Make sure we use correct MSG prefix #978

merged 2 commits into from May 1, 2019

Conversation

derekcollison
Copy link
Member

When having a connection like a client or a gateway that was sending to both routes and leafnodes the prefix for the MSG protocol could get stuck with 'L', causing router protocol violations.

This PR also reuses hostnames for soliciting leafnode connections when TLS is utilized.

Signed-off-by: Derek Collison derek@nats.io

/cc @nats-io/core

… routes.

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.

I think same change should be applied in sendMsgToGateways() since we do mh := c.msgb[:msgHeadProtoLen] there...

server/client.go Show resolved Hide resolved
@coveralls
Copy link

coveralls commented May 1, 2019

Coverage Status

Coverage increased (+0.04%) to 90.721% when pulling 1c8d4b4 on lproto into 628c373 on master.

Signed-off-by: Derek Collison <derek@nats.io>
@derekcollison derekcollison merged commit be02d76 into master May 1, 2019
@derekcollison derekcollison deleted the lproto branch May 1, 2019 22:51
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

3 participants