Skip to content

Panic on wrong packet length #194

@anti-social

Description

@anti-social

If you pass to a decoder wrong packet, it fails with the following error:

thread 'tokio-runtime-worker' panicked at /home/alexk/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/raptorq-2.0.0/src/octets.rs:749:5:
assertion `left == right` failed
  left: 632
 right: 1400

I think either this moment should be described in documentation or decoder should return an error. I would prefer error if it is possible.

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