Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
librdmacm/cmtime: Rework event handling to sync test steps
Update the server, so that it processes events using a separate thread, similar to the client. This allows the main thread to continue as a control thread, which is then used to synchronize the testing with the client. By synchronizing the the tests, the server can now know what events it expects to receive. This enables the server to track the start and end of the connect and disconnect phases. Prior to adding synchronization, disconnect events could have been generated before all connections completed. (For example. the RTU from the client was lost, requiring that it be retried. During that window, the client could start the disconnect process. This made the number of events that the server would actually see unknown in the case packets were lost.) Update the code to track the start and end of the phases. That data feeds into the control thread determining when to sync. Signed-off-by: Sean Hefty <[email protected]>
- Loading branch information