MCPcopy Create free account
hub / github.com/imroc/req / processGoAway

Method processGoAway

internal/http2/transport.go:2909–2921  ·  view source on GitHub ↗
(f *GoAwayFrame)

Source from the content-addressed store, hash-verified

2907}
2908
2909func (rl *clientConnReadLoop) processGoAway(f *GoAwayFrame) error {
2910 cc := rl.cc
2911 cc.t.connPool().MarkDead(cc)
2912 if f.ErrCode != 0 {
2913 // TODO: deal with GOAWAY more. particularly the error code
2914 cc.vlogf("transport got GOAWAY with error code = %v", f.ErrCode)
2915 if fn := cc.t.CountError; fn != nil {
2916 fn("recv_goaway_" + f.ErrCode.stringToken())
2917 }
2918 }
2919 cc.setGoAway(f)
2920 return nil
2921}
2922
2923func (rl *clientConnReadLoop) processSettings(f *SettingsFrame) error {
2924 cc := rl.cc

Callers 1

runMethod · 0.95

Calls 5

connPoolMethod · 0.80
stringTokenMethod · 0.80
setGoAwayMethod · 0.80
MarkDeadMethod · 0.65
vlogfMethod · 0.45

Tested by

no test coverage detected