$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] [asio] sending and receiving binary
From: Igor R (boost.lists_at_[hidden])
Date: 2011-07-09 17:59:45
> It appears to be accepting the message, but when it tries to respond the async_write() function throws an error:
>
> ERROR: 'system:0' has occurred.
It means there's no error. Test error_code like this: if (aError) {...}.
> ... and I see 'connection reset by peer' on the client side.
Your HandleWrite doesn't initiate another i/o operation, doesn't
create another handler bound to shared_from_this, so the TCPConnection
instance gets destroyed along with its socket.