$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] boost::asio blocking socket read with timeout with multiple threads
From: tom_at_[hidden]
Date: 2018-03-23 08:07:37
> 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.