Skip to content

Fix delays in pcap implementation#21

Merged
raoulstrackx merged 1 commit intomasterfrom
jb/pcap-fixes
Nov 19, 2024
Merged

Fix delays in pcap implementation#21
raoulstrackx merged 1 commit intomasterfrom
jb/pcap-fixes

Conversation

@jethrogb
Copy link
Copy Markdown
Member

The previous implementation had several issues:

  • pcap-async relied on a blocking function (smol::unblock) internally making it not really async
    • I also noticed packet processing delays related to the buffer_for Duration, not sure if this was related or not.
  • Blocking MPSC channels were used in async code

These are fixed by switching to the pcap crate which has since gotten its own async implementation. I also added an async implementation for the other direction.

Depends on rust-pcap/pcap#372 and rust-pcap/pcap#373

@raoulstrackx raoulstrackx added this pull request to the merge queue Nov 19, 2024
Merged via the queue into master with commit 5ba09c9 Nov 19, 2024
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

Successfully merging this pull request may close these issues.

2 participants