Split the main up loop into two threads.
The reader and the writer now communicate through a channel and the packet cache. If the writer thread drops behind, we drop packets after inserting in the packet cache, which avoids building a backlog.
Showing
Please register or sign in to comment