Re: Socket behavior change from 6.5 to 6.6

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Fri, Jan 16, 2015 at 01:23:56PM -0600, Les Mikesell wrote:

> And, without keepalives enabled,
> you still won't get an error on the write.

No, if the other end is up after a reboot, you'll get an immediate
error and socket close.

That's assuming the window isn't full; if it is, you'll have to wait
until a zero-window probe.

App level ping-ponging is the way to make sure TCP connections are
actually alive. I've never seen a portable system use keepalives for
that, due to the >= 2 hour default and the lack of a portable way to
configure the time.

There sure are a lot of mutually-conflicting opinions flying in this
thread. I learned this stuff by studying how IRC uses
application-level ping-pong, and have encountered and used this info
repeatedly in the years since.

-- greg


_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos



[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux