Open lihe07 opened 2 years ago
I'm using wpcap as backend. My program uses multithreading to send packets, but it panics when the rate is fast.
wpcap
thread '<unnamed>' panicked at 'assertion failed: `(left == right)` left: `-1`, right: `0`', .....\rawsock-0.3.0\src\wpcap\interface.rs:85:13
Maybe instead of panic here, return a Result::Err(). This is helpful for error handling
Result::Err()
I'm using
wpcap
as backend. My program uses multithreading to send packets, but it panics when the rate is fast.Maybe instead of panic here, return a
Result::Err()
. This is helpful for error handling