refraction-networking / conjure

Conjure Refraction Networking station code
https://refraction.network
Apache License 2.0
66 stars 19 forks source link

Captool handle `get_next_packet()` errors #176

Closed jmwample closed 1 year ago

jmwample commented 1 year ago

Not handling pcap::Error::NoMorePackets was causing the tool to hang when processing pcaps. This change makes it so that errors that occur during Capture::get_next_packet() are handled and if all ingest threads die the process ends, even if a timeout was set.