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

fix(lambda-tiler): limit the tiff memory cache to 256MB of imagery #1882

Merged
merged 1 commit into from
Sep 23, 2021

Conversation

blacha
Copy link
Member

@blacha blacha commented Sep 23, 2021

No description provided.


/** Validate the size of the cache has not exploded */
static check(): void {
if (TiffCache.MaxCacheSizeBytes <= 0) return;
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we need to check MaxCacheSizeBytes <= 0 since it is a static value?

Copy link
Member Author

Choose a reason for hiding this comment

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

Paranoia, there is nothing stopping a consumer of this package from just changing the value to -1

@kodiakhq kodiakhq bot merged commit 2bf0bdc into master Sep 23, 2021
@kodiakhq kodiakhq bot deleted the fix/limit-tiff-cache branch September 23, 2021 03:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants