KimiNewt / pyshark

Python wrapper for tshark, allowing python packet parsing using wireshark dissectors
MIT License
2.23k stars 422 forks source link

Is it possibile to not lose packets during an apply_on_packets() timeout? #493

Open marcocifarelli opened 3 years ago

marcocifarelli commented 3 years ago

During the execution of this code:

while True: capture.apply_on_packets(timeout=5) do something..

When "do something.." is executing, some packets are lost. Is there a way to not lose them without using sniff_continously but still using a timeout? I need it to wake up a thread every 5 seconds.

marcocifarelli commented 3 years ago

up