Wenju Gao
Wenju Gao
``` Running 15s test @ http://localhost:8888/sse 8 threads and 512 connections Thread Stats Avg Stdev Max +/- Stdev Latency 7.33ms 2.89ms 80.33ms 84.91% Req/Sec 4.09k 729.42 13.61k 73.92% Latency Distribution...
1. Please follow the template to fill the PR description. 2. Fix CIs. 3. Sign the CLA. Please check that the changes are all ready for CR🙏
No update for too long, will be closed, reopen if necessary.
可以提一个修改默认 maxKeepBodySize 的 PR,以及可能的话,添加一个测试来保障修改效果
@784909593 If there is anything different to what has been concluded here, please provide more context for others to catch up.
对,Connect 不是原生支持,不过可以自己搞,fyi: 在 Hertz 中,如果你需要处理 HTTP `CONNECT` 方法,可以遵循以下步骤: 1. **检查请求方法是否为 `CONNECT`**:使用 `RequestHeader.IsConnect` 方法检查请求方法。 2. **处理 `CONNECT` 方法**:如果请求方法是 `CONNECT`,则执行相应的处理逻辑,如建立隧道连接。 ### 示例代码 以下是一个完整的示例代码,展示了如何在 Hertz 中处理 HTTP `CONNECT` 方法: ```go package main import...
> 我是从java转过来。目前在设计一个微服务整体结构。 日志这边的考虑: > > 1. 从一个微服务的整体结构设计来看,肯定是希望一套日志架构从开始一直应用到底层,这样输出的日志都是统一的标准。 > 2. 作为编码的人,也是希望日志在写的时候,也只会用一个入口。 > 3. OTEL也是这样的方式 > 既然klog可以作为这样的入口,那么希望klog可以丰富一下功能,类似java SLF4j这的facade能力。 要不然我还是要重新写一套日志标准重头替换klog,包括klog对otel的封装。 这样的话,kitex作为微服务的提供方我感觉失去在日志方面的作用了。 @systemview2018 “java SLF4j这的facade能力” 是指的占位符参数日志吗?这个目前的接口定义应该是有的 & 所有的实现库都支持,Golang 里是通过 format 的方式引入的这类能力,类似 Errorf(format string, v...
嗯嗯,看起来是对的上的,目前这套接口其实就是一个类似 facade 的作用,你可以看看上面提到的 formatLogger 的定义,这个也是 klog 的接口的一部分,看看是否除了 format(占位符)以外还有别的无法满足的诉求哈
Please fill the PR description according to the template. Here is a example: https://github.com/cloudwego/hertz/pull/1016
@Feizekai Any update for this? 🙏