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

Update keep alive of client to 5min to prevent spamming the server #774

Merged
merged 2 commits into from
Feb 5, 2019

Conversation

NicolasMahe
Copy link
Member

@NicolasMahe NicolasMahe commented Feb 5, 2019

Related to #760, #759 and #770

Client should not ping the server more often than the EnforcementPolicy.MinTime set on the server otherwise they get a GOAWAY error.
By default it's 5min, so I set the client to ping the server every 5min.

Also, by setting the client ping > to server ping, it also resolves the problem when both client and server were pigging themselve in both way. Now the client actually never has to ping the server if the connection is still open and the server pings the client.

This is a critical fix and needs to be released as soon as possible.

@NicolasMahe NicolasMahe added bug Something isn't working bugfix and removed bug Something isn't working labels Feb 5, 2019
This was referenced Feb 5, 2019
ilgooz
ilgooz previously approved these changes Feb 5, 2019
@krhubert
Copy link
Contributor

krhubert commented Feb 5, 2019

This fix worked for me

@NicolasMahe NicolasMahe merged commit 7dcaa33 into master Feb 5, 2019
@NicolasMahe NicolasMahe deleted the fix/client-keep-alive branch February 5, 2019 10:14
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.

3 participants