You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@pekko.apache.org by "pjfanning (via GitHub)" <gi...@apache.org> on 2026/08/04 13:02:23 UTC
[PR] huawei-push-kit: use expires_in from responses [pekko-connectors]
pjfanning opened a new pull request, #1812:
URL: https://github.com/apache/pekko-connectors/pull/1812
1. The old behavior was a bug, not a feature — hardcoding 3600s when the server explicitly tells you otherwise is incorrect per OAuth2 spec. A config to "revert to wrong" is unusual.
2. If the server returns bad data, that's a different problem — and the right fix for that would be validation/fallback logic (e.g., clamp to a reasonable range), not a toggle to ignore the server entirely.
3. Config surface area — every config option is a maintenance and documentation burden. This one would be hard to name clearly and would confuse users.
What might make more sense as a safety net is a buffer — subtract a small amount (e.g., 60s) from expires_in to account for clock skew and network latency, which is a common pattern:
expiresAt = now + result.expires_in - 60
This protects against edge cases without adding config.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For additional commands, e-mail: notifications-help@pekko.apache.org
Re: [PR] huawei-push-kit: use expires_in from responses [pekko-connectors]
Posted by "pjfanning (via GitHub)" <gi...@apache.org>.
pjfanning merged PR #1812:
URL: https://github.com/apache/pekko-connectors/pull/1812
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For additional commands, e-mail: notifications-help@pekko.apache.org