Boost Users :
Subject: Re: [Boost-users] [asio] Socket closed notification?
From: Jonathan Franklin (franklin.jonathan_at_[hidden])
Date: 2009-12-14 23:03:48
On Mon, Dec 14, 2009 at 8:50 PM, Scott Gifford
> Jonathan Franklin <franklin.jonathan_at_[hidden]> writes:
>> On Mon, Dec 14, 2009 at 10:52 AM, Nicola Michael Gutberlet
>> You generally have to do a read on the socket to reliably detect when
>> the other side has closed (or crashed).
> And a write, too, or else use TCP keepalives.
Unfortunately, write isn't reliable since it will always succeed until
you fill up your send buffer.
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