Skip to content

pause and resume causes closure of readstream #49

Description

@braco

Couldn't figure this out, but switching packages to csvtojson seemed to resolve for me

const parser = csvReader({ columns: true });
const reader = fs.createReadStream(...).pipe(parser);
while (1) {
    reader.pause()
    await something()
    reader.resume()
}

After around the 6th? resume, it will consistently close the read stream for reasons that elude me

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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