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

Don't Ping on Handshake Connection #39076

Conversation

original-brownbear
Copy link
Member

  • It does not make sense to run pings on the handshake connection
    • Set the ping interval to -1 to deactivate pings on it

* It does not make sense to run pings on the handshake connection
   * Set the ping interval to `-1` to deactivate pings on it
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-distributed

Copy link
Contributor

@DaveCTurner DaveCTurner left a comment

Choose a reason for hiding this comment

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

The only other place we use buildSingleChannelProfile(TransportRequestOptions.Type, TimeValue, TimeValue) is in UnicastZenPing. I think this should be adjusted similarly (it's used in Zen1IT today) and we can then remove that overload entirely. Also buildSingleChannelProfile(TransportRequestOptions.Type, boolean) is unused.

@DaveCTurner
Copy link
Contributor

it's used in Zen1IT today

Oh wait, that's gone in master. It still exists in 7.x.

@original-brownbear
Copy link
Member Author

@DaveCTurner alright, adjusted the other spot as well and removed the unused overloads :)

Copy link
Contributor

@DaveCTurner DaveCTurner left a comment

Choose a reason for hiding this comment

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

LGTM

@original-brownbear original-brownbear merged commit a459cb0 into elastic:master Feb 19, 2019
@original-brownbear original-brownbear deleted the dont-ping-on-handshake-connection branch February 19, 2019 11:20
original-brownbear added a commit to original-brownbear/elasticsearch that referenced this pull request Feb 27, 2019
* Don't Ping on Handshake Connection

* It does not make sense to run pings on the handshake connection
   * Set the ping interval to `-1` to deactivate pings on it
original-brownbear added a commit that referenced this pull request Feb 27, 2019
* Don't Ping on Handshake Connection

* It does not make sense to run pings on the handshake connection
   * Set the ping interval to `-1` to deactivate pings on it
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants