[FIXED] LeafNode: connection may fail on slow link#5424
Conversation
derekcollison
left a comment
There was a problem hiding this comment.
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 <ivan@synadia.com>
|
@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). |
Added the leafnode remote configuration parameter
first_info_timeoutwhich 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 ivan@synadia.com