Skip to content

Retry cert requests#37

Merged
cavis merged 4 commits intomasterfrom
fix/retry_cert_requests
Mar 18, 2026
Merged

Retry cert requests#37
cavis merged 4 commits intomasterfrom
fix/retry_cert_requests

Conversation

@cavis
Copy link
Member

@cavis cavis commented Mar 17, 2026

We periodically see 502/504 responses from ID, fetching the cert.

Just add a retry to these.

@cavis cavis requested a review from kookster March 17, 2026 15:52
@cavis cavis self-assigned this Mar 17, 2026
Copy link
Member

@kookster kookster left a comment

Choose a reason for hiding this comment

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

Looks good, I wonder if you'd want to have a pause between retries?

if res.is_a?(Net::HTTPSuccess)
res.body
elsif res.code.to_i >= 500 && retries > 0
fetch_http(retries - 1)
Copy link
Member

Choose a reason for hiding this comment

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

Do you want to pause/sleep before trying again? Give it a half a sec or something?

Copy link
Member

@kookster kookster left a comment

Choose a reason for hiding this comment

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

looks good!

@cavis cavis merged commit 72d3a33 into master Mar 18, 2026
1 check passed
@cavis cavis deleted the fix/retry_cert_requests branch March 18, 2026 17:44
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