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

Add retries to read request and write response calls to proxy #98

Merged
merged 4 commits into from Jul 1, 2022

Conversation

swalkowski
Copy link
Collaborator

The retries are supposed to overcome transient network connectivity errors and other internal server errors when reading request or writing response.

@swalkowski swalkowski marked this pull request as ready for review May 18, 2022 21:30
agent/utils/utils.go Outdated Show resolved Hide resolved
agent/utils/utils.go Show resolved Hide resolved
agent/utils/utils.go Outdated Show resolved Hide resolved
The goal is to avoid failing the end user request in case of a transient
network connectivity error or another internal proxy error when getting
request from the proxy, assuming it succeeds on one of the next
attempts.
The goal is to avoid failing the end user request in case of a transient
network connectivity error or another internal proxy error when forwarding
a response to the proxy, assuming it succeeds on one of the next attempts.
The retries are only applied to errors that occur before the proxy has read
more than the first 4096 bytes of the response body.
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.

None yet

2 participants