Boost logo

Boost Users :

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.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net