hertz
hertz copied to clipboard
Go HTTP framework with high-performance and strong-extensibility for building micro-services.
> We hope mores developers join CloudWeGo. This is a task issue which need your help. **Is your feature request related to a problem? Please describe.** Write a business demo...
目前websocket用的是改造自 gorilla 的框架,在高并发的场景下体现了性能不足的问题,也跟自身的链接池管理,锁有关。 希望能兼容 gws https://github.com/lxzan/gws
https://github.com/cloudwego/hertz/blob/532011f36abee9d74dfc75efeef065d5c6fa64df/pkg/app/server/hertz.go#L132 这里仅使用opt中的registry info,而kitex在启动后会更新registry info 对应现象是hertz能正常监听到任意端口,但在`initOnRunHooks`时,没有用监听到的端口地址去配置服务发现 ``` 2024/02/04 19:38:38.789411 main.go:31: [Info] addr: :0 2024/02/04 19:38:38.789896 engine.go:389: [Info] HERTZ: Using network library=netpoll 2024/02/04 19:38:38.790097 transport.go:109: [Info] HERTZ: HTTP server listening on address=[::]:65094...
**Describe the bug** request context pool 回收机制影响到了 bytebuffer pool 的分配机制,导致系统弹性变低,系统在遇到偶发异常的情况下,会更容易OOM。 代码分析: 这里是用 response body 的 len 进行判断的,而不是 cap。如果 body 的 cap 较大,但是 len 较小时,这个 body 对象是不会被 put 回 responseBody pool...
#### What type of PR is this? feat #### Check the PR title. - [x] This PR title match the format: \(optional scope): \ - [x] The description of this...
#### What type of PR is this? fix #### Check the PR title. - [x] This PR title match the format: \(optional scope): \ - [x] The description of this...
#### What type of PR is this? optimize #### Check the PR title. - [x] This PR title match the format: \(optional scope): \ - [x] The description of this...
#### What type of PR is this? fix #### Check the PR title. - [x] This PR title match the format: \(optional scope): \ - [x] The description of this...
#### What type of PR is this? fix #### Check the PR title. - [x] This PR title match the format: \(optional scope): \ - [x] The description of this...