Bug #3

pcap_dispatch blocks on exit if no traffic is seen.

Added by Will Metcalf over 8 years ago. Updated over 6 years ago.

Target version:
Affected Versions:


If the engine is sent a signal to exit in pcap live mode, pcap_dispatch will block until a packet is received.

See the threads below. We can overcome this by setting the pcap
handle to non-blocking but cpu utilization increases a ton. Not that big of an issue but here are some threads explaining it and possible solutions.


#1 Updated by Victor Julien over 8 years ago

The non blocking solution is probably not interesting for performance reasons. The other option is to look at pcap_breakloop but that needs to be called by the pcap thread(s) itself then. Low priority issue.

#2 Updated by Victor Julien over 8 years ago

  • Target version changed from 0.8.0 to TBD

#3 Updated by Eric Leblond over 6 years ago

I'm not able to reproduce it. Maybe we could close it ?

#4 Updated by Will Metcalf over 6 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

afaik this was a libpcap 0.9.x bug. closing.

#5 Updated by Victor Julien over 6 years ago

  • Assignee deleted (OISF Dev)
  • Target version deleted (TBD)

Also available in: Atom PDF