Re:Golang is evil on shitty networks
by benmmurphy on Friday December 30, 2022 @09:36AM
(#34185375)
HTTP/2 supports a heartbeat in the protocol using PING frames. But I guess a lot of clients probably don’t support it or use it by default.
You need a heartbeat or ping message together with an advancing deadline to detect dead peers reliably.