Skip to content

Not emitting 'end' #27

@hudgins

Description

@hudgins

I believe I should get console.log output in the following:

    var stream = filed(download.filename)
    stream.on('end', function() { console.log('download completed.') } )
    stream.pipe(response)

I don't unless I modify filed to call end() like so at line 140:

    fs.createReadStream(self.path).on('end', function() {self.end()}).pipe(self.dest)

But I'm new to streams and may not know what I'm doing. Perhaps I should be listening to 'end' on the response stream in this case but that doesn't fire either.

Reproducible with node v0.6.18 and v0.8.4.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions