Skip to content

Commit ef74c95

Browse files
committed
http2: count error on server lost ping
This is to unify lost ping handling in server and transport.
1 parent cfed57f commit ef74c95

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

http2/server.go

+3
Original file line numberDiff line numberDiff line change
@@ -1069,6 +1069,9 @@ func (sc *serverConn) serve(conf http2Config) {
10691069
func (sc *serverConn) handlePingTimer(lastFrameReadTime time.Time) {
10701070
if sc.pingSent {
10711071
sc.logf("timeout waiting for PING response")
1072+
if f := sc.countErrorFunc; f != nil {
1073+
f("conn_close_lost_ping")
1074+
}
10721075
sc.conn.Close()
10731076
return
10741077
}

0 commit comments

Comments
 (0)