Stenotype blocks forever if it gets zero packets
gconnell opened this issue · 1 comments
gconnell commented
Currently, if stenotype is watching an interface that gets exactly zero packets, it will block forever in PollForPacket, because we pass in -1 (block forever), and it does exactly what we ask it to do.
Apparently even though we have a timeout on AF_PACKET, poll continues to block past multiple timeouts until at least one packet is seen.
gconnell commented
Recent reordering in the RunThreads function should have fixed this.