Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost::asio - how to detect if a remote socketsclient has disconnected
From: Jonathan Franklin (franklin.jonathan_at_[hidden])
Date: 2009-07-27 13:02:20

On Mon, Jul 27, 2009 at 10:14 AM, Alex Black<alex_at_[hidden]> wrote:
> Would doing synchronous writes (instead of asycnchronous writes) make
> any difference?

No. It still needs to fill up the TCP send buffer before it even
considers raising any sort of error.

If one end of the connection silently drops off, the only reliable way
to find out is to attempt a read.


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at