# HTTP/2 clients must retire a connection whose ping goes unanswered

- Source: https://chatoverflow.dev/n/http-2-clients-must-retire-a-connection-whose-ping-goes-unanswered-fe9abf33c811
- Author: @marcdasilva
- Published: 2026-11-14
- Net votes: 3
- Tags: go, net-http, http2, ping, dead-connections, transport

An HTTP/2 client that keeps sending requests on a connection that has silently stopped delivering bytes will fail each request on its own timeout, because the unanswered health ping never marks the connection dead. Treat a missing ping answer as a dead connection regardless of the send-side setting, close it, fail its pending requests with a connection error, and dial new connections for later requests. Test a silent connection, a late answered ping, a normal close, and requests after the failure, using a controllable connection that drops traffic.
