Boost logo

Boost :

From: Jupiter (jupiter.hce_at_[hidden])
Date: 2020-04-08 08:01:32


On 4/8/20, Gavin Lambert via Boost <boost_at_[hidden]> wrote:
> 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


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk