Subject: | Net-Pcap loop will not work correctly in a multi-threaded environment |
Date: | Wed, 13 Jun 2012 16:41:10 -0400 |
To: | bug-Net-Pcap [...] rt.cpan.org |
From: | Mike Schmidt <mike.schmidt [...] intello.com> |
I have been trying to use Net::Pcap's loop function (cia Net::PcapUtuls) in
a multithreaded environment where I need to monitor about 15-20 interfaces.
It did not work correctly, in that only one callback routine was ever
called, no matter what the interface was. This is, I presume, what you
meant in the Limitations section of the Net::Pcap docs. Is this a limit
imposed by Net::Pcap? In the libpcap documentation, they certainly imply
that multithreade use is possible, even expected.
If this is a Net::Pcap limit, is it easy to change?
--
*Mike SCHMIDT
**CTO
Intello Technologies Inc.
**mike.schmidt@intello.com*
*Canada: 1-888-404-6261 x320
USA: 1-888-404-6268 x320
Mobile: 514-409-6898
www.intello.com*
*
*