|
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.
Jon
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