On Fri, 23 Mar 2018 at 09:07, Thomas Quarendon via Boost-users <boost-users@lists.boost.org> wrote:

> You can use a deadline_timer and cancel the synchronous read if it
> trips.  It's a bit fugly though and is subject to races.  It's much
> nicer to use async.

The point is though that I don't think this works. This is what I started with.
It works on Windows OK. But on Linux, calling "cancel" or "close" on a socket doesn't
cancel a synchronous read call. This is what started me down this whole route.


This seems unlikely. I have been using asio in production code on Linux for 4 years. Can you post a mcve so I can test?

_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
https://lists.boost.org/mailman/listinfo.cgi/boost-users