MCPcopy Index your code
hub / github.com/coder/coder / classifyHTTP2StreamReset

Function classifyHTTP2StreamReset

coderd/x/chatd/chaterror/classify.go:301–310  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

299}
300
301func classifyHTTP2StreamReset(err error) (retryable bool, found bool) {
302 streamErr, ok := findHTTP2StreamError(err)
303 if !ok {
304 return false, false
305 }
306 if !isPeerHTTP2StreamError(streamErr) {
307 return false, true
308 }
309 return isRetryableHTTP2StreamCode(streamErr.Code), true
310}
311
312func findHTTP2StreamError(err error) (http2.StreamError, bool) {
313 var streamErr http2.StreamError

Callers 1

ClassifyFunction · 0.85

Calls 3

findHTTP2StreamErrorFunction · 0.85
isPeerHTTP2StreamErrorFunction · 0.85

Tested by

no test coverage detected