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

Check status code when polling finished #140

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

walkure
Copy link

@walkure walkure commented Jan 23, 2023

Reverse proxies(e.g. nginx / AWS ALB ) replies with 504 Gateway Tiemout response when idle timeout elapsed.

Default value of idle timeouts for AWS ALB / nginx are 60 seconds.

When pushprox-proxy has not received any scrape requests pushprox-client receives 504 reponse after idle timeout elapsed.

So, I've added checking http response status code before reading the response body.

Fix. #77 #118

Signed-off-by: walkure <walkure@3pf.jp>
@walkure walkure force-pushed the check-polling-response-status-code branch from dbdca19 to 60cd408 Compare January 23, 2023 14:08
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.

1 participant