What is the optimal value to use for the loop count when calling pcap loop?

No replies
Joined: 11/14/2016

Originally my program was using a value of 100 and the pcap.loop was working properly when receiving ~10k pps. When I modified the loop call to be use the infinite value (-1) I noticed that packets were not being processed after ~15 mins when processing ~10k pps. The implementation just seemed to hang in the loop method and did not process any more packets. I was also using a timeout of 1000 when calling the pcap.openlive method, is this not an optimal value?