8 Apr
2020
8 Apr
'20
8:01 a.m.
On 4/8/20, Gavin Lambert via Boost
Your lambda isn't capturing a shared_ptr, thus if nothing else is keeping the session object alive, it's probably being destroyed (and cancelling the read -- though probably then also calling HandleRead after destruction, which is bad).
No warder it works for TCP because it is always connected. good to learn every day :-). Thank you very much Gavin. Cheers. - jh