-
-
Notifications
You must be signed in to change notification settings - Fork 15.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow PcapWriteHandler instances to write to the same OutputStream (#…
…13118) Motivation: Currently, PcapWriteHandler expects a dedicated OutputStream, and cannot support multiple streams written to a single PCAP file. These modifications are intended to support sharing the OutputStream between multiple concurrent PcapWriteHandler instances. Modification: Added a "shareOutputStream" flag to PcapWriteHandler (and PcapWriter) to enable synchronization on the OutputStream in order to prevent interleaved writes. Also, provide a method to write the PCAP Global Header to the OutputStream. Result: Allows multiple channels to write to the same PCAP file. This PR adds further improvement done in PR #12337 and supersedes it. Original Author: @RoganDawes
- Loading branch information
Showing
7 changed files
with
569 additions
and
237 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.