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

cache: distinguish between connect and request error reason #415

Conversation

ortuman
Copy link
Contributor

@ortuman ortuman commented Oct 24, 2023

This PR adds an additional cache error reason (connect-timeout) in order to distinguish between timeout errors originated during a cache operation and those resulting from a connection attempt.

Signed-off-by: Miguel Ángel Ortuño <ortuman@gmail.com>
Copy link
Contributor

@pracucci pracucci left a comment

Choose a reason for hiding this comment

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

LGTM modulo a nit

cache/client.go Outdated Show resolved Hide resolved
Signed-off-by: Miguel Ángel Ortuño <ortuman@gmail.com>
@ortuman ortuman enabled auto-merge (squash) October 24, 2023 08:59
@ortuman ortuman merged commit 0c3fa5d into main Oct 24, 2023
3 checks passed
@ortuman ortuman deleted the ortuman/cache/memcached-distinguish-between-connect-and-request-timeout branch October 24, 2023 09:04
ying-jeanne pushed a commit that referenced this pull request Nov 2, 2023
* cache: distinguish between connect and request error reason

Signed-off-by: Miguel Ángel Ortuño <ortuman@gmail.com>

* addressed PR feedback

Signed-off-by: Miguel Ángel Ortuño <ortuman@gmail.com>

---------

Signed-off-by: Miguel Ángel Ortuño <ortuman@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants