-
Notifications
You must be signed in to change notification settings - Fork 729
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
Parse the response Date header and expose in the Rate Limit information #383
Comments
Some additional context:
Notice server response header: Otherwise, depending on local system time has a risk of inaccuracy due to clock drift between the client and remote GitHub service. |
I'm experiencing this now in a docker container. I printed the time out, and it is the same as the server, though in UTC. I noticed the timezone was GMT in jenkins systeminfo, so I restarted the container with an environment variable and successfully switched it to America/New York, but that did not resolve the issue either. Any ideas for an immutable deployment. Going in and modifying something in the system might work, until the container got rescheduled.. |
Possibly related #327 ? |
Improves the way reset date is calculated - uses server date if possible. Fixes hub4j#383
See https://issues.jenkins-ci.org/browse/JENKINS-47154
The rate limit information should expose the date of the rate limits by parsing the
Date
header rather than putting the consumer at the mercy of clock synchronization.The text was updated successfully, but these errors were encountered: