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

feat: do not count context cancelation as peer error #41

Conversation

costela
Copy link
Contributor

@costela costela commented May 18, 2022

If the incoming internal groupcache request gets canceled, it should not count as a peer error.

With the current code, it's impossible to separate context cancelations (which might be outside the control of the service running groupcache) from "real" peer errors.

Also, with this PR, in case the internal request times-out (via context), the requesting peer can still do its own error accounting.

WDYT?

Copy link
Contributor

@thrawn01 thrawn01 left a comment

Choose a reason for hiding this comment

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

Thank you for this improvement! I agree differentiating a cancel from a timeout or peer error is important.

@thrawn01 thrawn01 merged commit 87609ae into mailgun:master May 23, 2022
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.

2 participants