Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
msg/simple: wait dispatch_queue until all pipes closed
Now we use dispatch_queue.wait to wait for SimpleMessenger shutdown, but we need to ensure DispatchQueue can process event after Accepter down, Otherwise accepter may continue to accept new connection which may queue new item. so we can't rely on DispatchQueue now. Introduce stop_cond and stop flag to indicate this function like AsyncMessenger did Fixes: http://tracker.ceph.com/issues/16472 Signed-off-by: Haomai Wang <haomai@xsky.com>
- Loading branch information
Showing
2 changed files
with
21 additions
and
8 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