Skip to content

extend renewal_info() to yield retry-after header #125

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

Merged
merged 2 commits into from
Jul 4, 2025

Conversation

christianhoelzl
Copy link
Contributor

This pull request adds an extension to the function Account::renewal_info() to additionally yield the Retry-After header as a SystemTime. Reference is RFC 9773, 4.3.2 Client Handling of Retry-After. The SystemTime is a hint from the ACME server when to again fetch the renewal window.

@djc
Copy link
Owner

djc commented Jul 3, 2025

I think we should yield a Duration rather than a SystemTime.

@christianhoelzl
Copy link
Contributor Author

Changed to Duration. The edge case that the retry-after is in past is treated as a duration with 0 secs.
Could consider to move the fn retry-after to lib.rs?

@djc
Copy link
Owner

djc commented Jul 4, 2025

Could consider to move the fn retry-after to lib.rs?

Yes, please do that in a separate commit!

Copy link
Owner

@djc djc left a comment

Choose a reason for hiding this comment

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

Thanks, looks good!

@djc djc requested a review from cpu July 4, 2025 09:01
Copy link
Collaborator

@cpu cpu left a comment

Choose a reason for hiding this comment

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

Thanks!

@djc djc merged commit 61f2aa7 into djc:main Jul 4, 2025
10 checks passed
@christianhoelzl christianhoelzl deleted the ari_retry_after branch July 9, 2025 10:20
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.

3 participants