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

[CHANGED] Default Ping settings #337

Merged
merged 1 commit into from
Jan 8, 2021
Merged

Conversation

kozlovic
Copy link
Member

@kozlovic kozlovic commented Jan 8, 2021

The current defaults were too small and would cause a client to
mark the connection as lost after 15 seconds or so. This means
that a server restart or leadership change may lead to the client
dropping the connection.

Made the change so that the overall time the client keeps the
connection valid is as long as the server default ping settings.

Of course, user that use Pings() option are not affected. This
is only changing the default values.
Also, in the event that the server no longer has the client, the
client will detect that at the first ping interval, which is
5 seconds (the interval has not changed).

Signed-off-by: Ivan Kozlovic ivan@synadia.com

The current defaults were too small and would cause a client to
mark the connection as lost after 15 seconds or so. This means
that a server restart or leadership change may lead to the client
dropping the connection.

Made the change so that the overall time the client keeps the
connection valid is as long as the server default ping settings.

Of course, user that use Pings() option are not affected. This
is only changing the default values.
Also, in the event that the server no longer has the client, the
client will detect that at the first ping interval, which is
5 seconds (the interval has not changed).

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
Copy link
Member

@derekcollison derekcollison left a comment

Choose a reason for hiding this comment

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

LGTM

@kozlovic kozlovic removed the request for review from ColinSullivan1 January 8, 2021 22:31
@kozlovic kozlovic merged commit 22aa6ac into master Jan 8, 2021
@kozlovic kozlovic deleted the update_default_ping_setting branch January 8, 2021 22:31
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

2 participants