[Pkg-netmeasure-discuss] Bug#930481: python-pypcap: block/noblocking broken
Anton Ivanov
anton.ivanov at kot-begemot.co.uk
Thu Jun 13 15:11:36 BST 2019
Package: python-pypcap
Version: 1.2.2-1
Severity: important
Dear Maintainer,
Setting of block/nonblock in the pyppcap variant of working with pcap from
python is completely broken
To test -
set iface and FILTER for capture spec
p = pcap.pcap(iface.encode('ascii'), MAXPACKET, True, 1)
p.setfilter(FILTER)
p.setnonblock(True)
If there are no packets, it a p.next() or calling p in an iter
context should immediately return a None.
Instead of that it sits there and waits.
This makes the package unusable for all but the very simple blocking
use cases
-- System Information:
Debian Release: 10.0
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 4.19.0-5-amd64 (SMP w/12 CPU cores)
Kernel taint flags: TAINT_UNSIGNED_MODULE
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages python-pypcap depends on:
ii libc6 2.28-10
ii libpcap0.8 1.8.1-6
ii python 2.7.16-1
python-pypcap recommends no packages.
python-pypcap suggests no packages.
-- no debconf information
More information about the Pkg-netmeasure-discuss
mailing list