I have a number of async clients that are connecting to services on multiple async servers. Should each client have its own completion queue or does it need to be shared among all clients? (Or are both allowable and it's a design choice?)
On a related note, I'm trying to pin down the correct sequence for shutting everything down. I believe it is:
- Tear down all client connections (delete stub, reader, etc.).
- Call Shutdown on the completion queue.
- Drain the completion queue of any remaining events.
- Destroy completion queue.
Is that right?
Thanks,
Todd