Re:TCP Puzzlers (2016)
by denormalfloat on Sunday September 01, 2019 @01:13AM
(#20850579)
A cool thing HTTP/2 provides is PING frames, which allow clients and servers to check if connections are still alive. In case your application can't turn on TCP keep-alives, you can enable it at the application layer. This allows both sides to know if the connection is still around and active, and avoids NAT boxes from removing long lived connections. Rather than wait around 5 minutes, or tune your system, you can control how quickly dead connections are discovered.
[ Parent
| on HN ]
HTTP/2 was not the first to have this; both SSH and IMAP have it, IIRC.
Re:TCP Puzzlers (2016)
by denormalfloat on Sunday September 01, 2019 @01:24AM
(#20850617)
It may not be the first but it is a reason to upgrade from HTTP/1.1. PING frames have other uses too, like being able to estimate connection latency in an application, rather than trying to read it from the kernel. This can be used to load balance across connections, or estimate the bandwidth delay product of a connection. PINGs have a lot of uses; the new thing is being able to control it from an app rather than it being OS specific.
Re:TCP Puzzlers (2016)
by greglindahl on Sunday September 01, 2019 @01:54AM
(#20850705)
IRC has pings.