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:05:40


On Mon, Jul 27, 2009 at 10:17 AM, Etienne Philip
Pretorius<icewolfhunter_at_[hidden]> wrote:
> SO_KEEPALIVE?

SO_KEEPALIVE just tries to prevent one end from closing a connection
that has been idle for too long under "normal" operation.

The problem we're trying to detect is when the other side of the
connection drops off silently so we don't waste time *writing* data to
the connection. This is an error condition, SO_KEEPALIVE won't help
AFAICT.

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