Closed mocheryl closed 1 month ago
Hello,
The only constraint for a client is to follow suggestedWindow
(MUST).
The support Retry-After
is recommended (SHOULD) but not required.
Your patch gets the Retry-After
information but doesn't use it.
You can open a PR, you will have to add the missing elements.
Note: please use "
for string
, and explicit field name inside tests.
Maybe I wasn't clear enough. By "the Lego library doesn't account for that" I meant that the library part of the project (as opposed to the command line tool), specifically the GetRenewalInfo
method, ignores the header value. This diff fixes that. It is up to whoever implements the library to decide if and how to use the newly provided value. In my case, I can use it in my custom-made service to set the next time when to rerun the renewal check process.
If I'm understood now and we agree on the issue, can I begin with a PR?
ok, let's go for a PR.
Welcome
How do you use lego?
Library
Detailed Description
The draft states that the server should return information in HTTP Retry-After header on when to make the next renewal inquiry. I've checked on Let's Encrypt's staging environment and saw that they indeed provide this information however the Lego library doesn't account for that. Could you include this duration in the call so I can use it to better decide on the pooling interval? I've made this diff to get the process going. Would you rather I make a PR instead?