LiveCapture for a limited number of packet_count doesn't stop even after packet count reaches the limit [closed]

I am trying to sniff packets using pyshark library in Python and I managed to capture live packets using pyshark.LiveCapture(interface='...'). However, when I use capture.sniff(packet_count=5), the capture doesn't stop after 5 packets, it continues on. How can I stop packet receiving using pyshark?

Sajan's avatar
1
Sajan
asked 2019-10-01 01:56:17 +0000, updated 2019-10-01 01:56:43 +0000
edit flag offensive 0 remove flag reopen merge delete

Closed for the following reason "question is off-topic or not relevant" by grahamb 2019-10-01 07:34:02 +0000

Comments

This would seem to be a pyshark issue so you should direct your query to whatever support channels that project has.

grahamb's avatar grahamb (2019-10-01 07:33:52 +0000) edit
add a comment see more comments