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.
Not handling
pcap::Error::NoMorePackets
was causing the tool to hang when processing pcaps. This change makes it so that errors that occur duringCapture::get_next_packet()
are handled and if all ingest threads die the process ends, even if a timeout was set.