-
-
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
[FIXED] LeafNode: connection may fail on slow link #5424
Conversation
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.
If no one sets anything, how long can a leafnode exists before being declared stalled?
If you think this is too much, I could pass different values, but then it means adding a new configuration setting? (which was what the user wanted: make the wait configurable). |
I think we want to make the wait configurable for leafnodes vs using the ping mechanism. |
Ok, so a new value in a leaf node's remote configuration block and I assume that if not set, default to that constant that we were using. |
Yes I believe so.. |
Added the leafnode remote configuration parameter `first_info_timeout` which is the amount of time that a server creating a leafnode connection will wait for the initial INFO from the remote server. Resolves #5417 Signed-off-by: Ivan Kozlovic <[email protected]>
@derekcollison Sorry, did a force push with the amend because I wanted the commit log to be in phase with the use of a new config param instead of the original approach. |
Just ping when ready for review. |
It was/is ready for review. I was just saying that I did a push force (which I usually don't do once a code review has started). |
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
Added the leafnode remote configuration parameter
first_info_timeout
which is the amount of time that a server creating a leafnode
connection will wait for the initial INFO from the remote server.
Resolves #5417
Signed-off-by: Ivan Kozlovic [email protected]