Skip to content
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

Canary oct updates #67

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft

Canary oct updates #67

wants to merge 5 commits into from

Conversation

it-hms
Copy link
Contributor

@it-hms it-hms commented Oct 4, 2024

This PR addresses two issues:

  • Excessive historical data reads during offline periods which cause excessive memory usage.
  • Session management occasionally using bad tokens for refresh requests

@it-hms it-hms marked this pull request as draft October 4, 2024 15:16
it-hms added 5 commits October 4, 2024 11:26
Upon an exception being thrown whist POSTing data to Canary, historical
data reading will stop. This will ensure that memory is not excessively
used by reading more and more historical logs into memory. Historical
data reading will resume once the next POST request is successful.
Added a handler for the case where the the Canary API response indicates
 that the session token is invalid or expired. This handler will bypass
checks against the expiration timer. Previously, API responses
indicating an invalid or expired session token would be ignored if
the expiration timer had not yet expired.
Previously, session expiration updates were triggered when session
requests were made, but these requests could fail. This would result
in the session being invalid, but the expiration tracker being updated.
Now they are made when there is a successful response to get/update
session, or when there is a non-failure request not related to session
management.
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.

1 participant