Skip to content

no way to delay start of data flow #3

@wanderview

Description

@wanderview

Currently the pcap-parser always starts on the next tick due to this code:

  process.nextTick(this.stream.resume.bind(this.stream));

Even if you attempt to call parser.stream.pause() after creating the parser it will still be summarily resume()'d on the nextTick(). It would be nice if there was an option to the constructor indicating that the stream should remain paused.

Alternatively, implementing the Readable interface provided by streams2 would provide a similar effect.

I haven't looked at writing a pull request because I heard a rumor that a conversion to streams2 may be in the works. Is that true?

Thanks!

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