Skip to content
This repository was archived by the owner on Jul 20, 2018. It is now read-only.
This repository was archived by the owner on Jul 20, 2018. It is now read-only.

Barback should ensure that assets are properly finalized #15

Closed
@DartBot

Description

@DartBot

<img src="https://avatars.githubusercontent.com/u/188?v=3" align="left" width="96" height="96"hspace="10"> Issue by nex3
Originally opened as dart-lang/sdk#14188


When Barback passes Asset objects to Transformers via [isPrimary] and [apply], it's possible for those Transformers to open the Asset's stream for reading without properly closing it afterwards. This can create resource leaks that will become a problem in a long-running "pub serve" process. Since barback knows when an Asset is no longer in use by a transformer, it should close those Assets' streams.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions