From cfe14f2817afaa92ce1415508a2edf32b2bceec0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Thu, 15 Sep 2022 15:34:52 +0800 Subject: [PATCH] Suppress bad http2 error --- common/baderror/baderror.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/baderror/baderror.go b/common/baderror/baderror.go index 6cf581aa..74e37a20 100644 --- a/common/baderror/baderror.go +++ b/common/baderror/baderror.go @@ -26,7 +26,7 @@ func WrapH2(err error) error { if err == io.ErrUnexpectedEOF { return io.EOF } - if Contains(err, "client disconnected", "body closed by handler") { + if Contains(err, "client disconnected", "body closed by handler", "response body closed", "; CANCEL") { return net.ErrClosed } return err