-
Notifications
You must be signed in to change notification settings - Fork 4.6k
doc: update keepalive ClientParameters doc about doubling the interval upon GOAWAY #7469
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
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -33,7 +33,19 @@ import ( | |
| type ClientParameters struct { | ||
| // After a duration of this time if the client doesn't see any activity it | ||
| // pings the server to see if the transport is still alive. | ||
| // If set below 10s, a minimum value of 10s will be used instead. | ||
| // If set below 10s (including 0), a minimum value of 10s will be used | ||
| // instead. | ||
| // | ||
| // Note that gRPC servers have a default EnforcementPolicy.MinTime of 5 | ||
| // minutes (which means the client shouldn't ping more frequently than every | ||
| // 5 minutes). | ||
| // | ||
| // Though not ideal, it's not a strong requirement for Time to be less than | ||
| // EnforcementPolicy.MinTime. Time will automatically double if the server | ||
| // disconnects due to its enforcement policy. | ||
| // | ||
| // For more details, see | ||
| // https://github.com/grpc/proposal/blob/master/A8-client-side-keepalive.md | ||
| Time time.Duration // The current default value is infinity. | ||
|
||
| // After having pinged for keepalive check, the client waits for a duration | ||
| // of Timeout and if no activity is seen even after that the connection is | ||
|
|
||
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.
The "including 0" is probably not needed if we get rid of the comment below as mentioned.
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.
Done