$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] boost::asio destructor segfault?
From: Rutger ter Borg (rutger_at_[hidden])
Date: 2010-03-19 11:36:08
Sean McAllister wrote:
>
> Hmmm, I've only got the one extra thread to run the asynchronous event
> loop
> in. If I have
> async_read events outstanding, wouldn't the above code cause my destructor
> to block
> until I've read another message (which may happen quite infrequently)?
>
That's right -- but you still would like to have all operations finished
before the end of the destructor. If you need to close sockets, call, e.g.,
socket::close.
Cheers,
Rutger