1 Star 0 Fork 24

zhangxingrong/trafficserver

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
backport-Fix-H2-debug-message-for-a-rate-limit.patch 1.37 KB
一键复制 编辑 原始数据 按行查看 历史
zhangxingrong 提交于 2024-07-15 16:39 +08:00 . add some upstream patchs
From ed04f369793c81d04b625990305a84ef9fb512f6 Mon Sep 17 00:00:00 2001
From: Masakazu Kitajo <maskit@apache.org>
Date: Tue, 17 Oct 2023 03:34:37 +0900
Subject: [PATCH] Fix H2 debug message for a rate limit (#10583) (#10622)
(cherry picked from commit a8efca589716168a9c9cb32a74ddcb0915d59f7f)
Conflicts:
proxy/http2/Http2ConnectionState.cc
---
proxy/http2/Http2ConnectionState.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/proxy/http2/Http2ConnectionState.cc b/proxy/http2/Http2ConnectionState.cc
index 675cdbc4358..df506c6d18d 100644
--- a/proxy/http2/Http2ConnectionState.cc
+++ b/proxy/http2/Http2ConnectionState.cc
@@ -545,7 +545,7 @@ rcv_rst_stream_frame(Http2ConnectionState &cstate, const Http2Frame &frame)
cstate.get_received_rst_stream_frame_count() > cstate.configured_max_rst_stream_frames_per_minute) {
HTTP2_INCREMENT_THREAD_DYN_STAT(HTTP2_STAT_MAX_RST_STREAM_FRAMES_PER_MINUTE_EXCEEDED, this_ethread());
Http2StreamDebug(cstate.session, stream_id, "Observed too frequent RST_STREAM frames: %u frames within a last minute",
- cstate.get_received_settings_frame_count());
+ cstate.get_received_rst_stream_frame_count());
return Http2Error(Http2ErrorClass::HTTP2_ERROR_CLASS_CONNECTION, Http2ErrorCode::HTTP2_ERROR_ENHANCE_YOUR_CALM,
"reset too frequent RST_STREAM frames");
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zhangxingrong/trafficserver.git
git@gitee.com:zhangxingrong/trafficserver.git
zhangxingrong
trafficserver
trafficserver
master

搜索帮助