Boost logo

Boost Users :

Subject: Re: [Boost-users] Linux TCP session stays ESTABLISHED when interface is removed
From: Niall Douglas (s_sourceforge_at_[hidden])
Date: 2013-09-25 21:00:36


On 25 Sep 2013 at 17:21, Chris Verges wrote:

> Do you happen to know if writing a zero-length message would be enough
> to trigger the socket layers to reset without forcing data across the
> physical layer? (I'm in the middle of coding it up as a test, but
> figured I'd ask just in case you happened to know.)

Much better to turn on TCP keepalive (it's one of the socket
options). Then you'll learn when the transport has gone away.

Niall

-- 
Currently unemployed and looking for work.
Work Portfolio: http://careers.stackoverflow.com/nialldouglas/



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