Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sniff does not terminate on timeout #4590

Open
AndryAsh opened this issue Nov 15, 2024 · 0 comments
Open

sniff does not terminate on timeout #4590

AndryAsh opened this issue Nov 15, 2024 · 0 comments

Comments

@AndryAsh
Copy link

Brief description

OS Debian 12, scapy v.2.6.1
The timeout parameter does not work when capturing packets:
sniff(iface = interface, filter=“port 9999”, count = 1, timeout = 10)
If there are no packets to capture, sniff should terminate after 10 seconds, but it does not - the program hangs.

Scapy version

2.6.1

Python version

3.11.2

Operating system

Linux 6.1.0-26-amd64 x86_64

Additional environment information

No response

How to reproduce

data = sniff(iface = interface, filter="port 9999", count = 1, timeout = 10)
print(data)

Actual result

No response

Expected result

No response

Related resources

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant