
15 Sep
2010
15 Sep
'10
2:04 p.m.
You're right, the number of threads doesn't increase when I create more clients. Still, I'd like to know when these threads terminate. Do they nescessarily run until the app exits, or is there a way of telling asio 'hey, I'm done with sockets now, no need to keep these threads running'.
Obviously, it's implementation-dependent, and I really don't know how it behaves in the current implementation. But you can try and dispose all the asio objects (including io_services) and see if this helps.