pylibpcap and multiple threads

  • Thread starter =?ISO-8859-1?Q?=D6rjan_Gustavsson?=
  • Start date
?

=?ISO-8859-1?Q?=D6rjan_Gustavsson?=

Hi All!

Sorry if this is not the correct forum for this kind of question (I did
not find any pylibpcap related lists).

I am trying to use pylibpcap to capture network traffic from several
ethernet devices at the same time, each nic having a separate thread
assigned to it.

My problem is that when one thread is blocking inside pcap.loop() for
instance, it seems to have acquired the GIL, so that no other threads
can run.

Does anyone know a way to do this with threads, or is the only way to
have separate processes for each NIC?

Regards,

Örjan Gustavsson
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top