From 922badc0de8a3cb0b1e4913e01aa78789623bc1c Mon Sep 17 00:00:00 2001 From: muxi Date: Thu, 19 Dec 2024 20:24:52 +0800 Subject: [PATCH] fix: Fix clippy issue and add logic under ylong_runtime Signed-off-by: muxi --- ylong_http_client/src/util/h2/manager.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ylong_http_client/src/util/h2/manager.rs b/ylong_http_client/src/util/h2/manager.rs index 0f12f49..be9b62f 100644 --- a/ylong_http_client/src/util/h2/manager.rs +++ b/ylong_http_client/src/util/h2/manager.rs @@ -75,7 +75,7 @@ impl Future for ConnManager { // io output occurs error. OutputMessage::OutputExit(e) => { // Ever received a goaway frame - if let Some(_) = manager.controller.go_away_error_code { + if manager.controller.go_away_error_code.is_some() { continue; } // Note error returned immediately. @@ -93,6 +93,10 @@ impl Future for ConnManager { } // io output occurs error. OutputMessage::OutputExit(e) => { + // Ever received a goaway frame + if manager.controller.go_away_error_code.is_some() { + continue; + } if manager.manage_resp_error(cx, e)?.is_pending() { return Poll::Pending; } -- Gitee