$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] Boost::Asio - blocking read on socket does not disconnect when socket closed from other thread
From: Igor R (boost.lists_at_[hidden])
Date: 2010-01-25 02:13:44
> I would expect the worker thread to return from the blocking
> boost::asio::read
> call, with an error.
> This occurs on windows, but does not happen on the linux build of my app -
> it never returns from the above call.
>
> Why does the second thread never return? What am I doing wrong?
Socket object is not threadsafe -- it's not safe to access it from
multiple threads.