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

asked 2019-10-01 01:56:17 +0000

Sajan gravatar image

updated 2019-10-01 01:56:43 +0000

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?

edit retag flag offensive reopen merge delete

Closed for the following reason question is off-topic or not relevant by grahamb
close date 2019-10-01 07:34:02.650358


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

grahamb gravatar imagegrahamb ( 2019-10-01 07:33:52 +0000 )edit