Skip to content

Remove closed sources from the cache#8

Merged
sethfitz merged 4 commits into
masterfrom
remove-closed-sources
Feb 17, 2016
Merged

Remove closed sources from the cache#8
sethfitz merged 4 commits into
masterfrom
remove-closed-sources

Conversation

@sethfitz
Copy link
Copy Markdown
Owner

They should be assumed to be invalid at that point.

See also sethfitz/tilelive-tmstyle#5

Close immediately when sources are evicted by the cache. Other modules
may be holding onto references, but they shouldn't assume that they'll
remain open.
cache.del(sourceKey) will call close() on the source
sethfitz added a commit that referenced this pull request Feb 17, 2016
Remove closed sources from the cache
@sethfitz sethfitz merged commit 0c522ac into master Feb 17, 2016
@sethfitz sethfitz deleted the remove-closed-sources branch February 17, 2016 01:55
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