
10 May
2012
10 May
'12
12:59 p.m.
I don't really see how this changes things. The handlers which io_service has, has shared_ptrs to the connection so to get rid of the connection I need to get the io_service to call the handler so that the shared_ptr gets destroyed, or am I missing something?
Yes, after you close the socket, all the relevant handlers will be invoked and disposed.