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

clientv3: create keepAliveCtxCloser goroutine only if ctx can be canc… #16200

Merged
merged 1 commit into from
Jul 14, 2023

Conversation

kensou97
Copy link
Contributor

@kensou97 kensou97 commented Jul 9, 2023

We always create a keepAliveCtxCloser goroutine to eagerly update keepAlive when ctx is done.
But if ctx can never be canceled, there is no need to start a redundant goroutine.

Please read https://github.com/etcd-io/etcd/blob/main/CONTRIBUTING.md#contribution-flow.

Copy link
Member

@fuweid fuweid left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@ahrtr ahrtr left a comment

Choose a reason for hiding this comment

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

LGTM

thx @kensou97

Please also backport this PR to 3.5 and 3.4 if needed.

@kensou97
Copy link
Contributor Author

LGTM

thx @kensou97

Please also backport this PR to 3.5 and 3.4 if needed.

ok

Copy link
Member

@chaochn47 chaochn47 left a comment

Choose a reason for hiding this comment

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

LGTM

@ahrtr ahrtr merged commit c59bc52 into etcd-io:main Jul 14, 2023
@serathius serathius mentioned this pull request Oct 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

5 participants