-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perfests/standalone-enc socketpair_one: use processes, not threads
This commit has two benefits: 1. It allows us to add a socketpair_two test (which has separate processes for encryption, decryption, input, and output) with less new code. (We can't have encryption and decryption in the same process, because they rely on events_spin(), which isn't thread-safe.) 2. This brings the test closer to the way we'd normally use spiped (i.e. one process from spiped, and at least one other process piping data to it).
- Loading branch information
Showing
1 changed file
with
21 additions
and
28 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