mosn icon indicating copy to clipboard operation
mosn copied to clipboard

The Cloud-Native Network Proxy Platform

Results 207 mosn issues
Sort by recently updated
recently updated
newest added

### Issues associated with this PR Your PR should present related issues you want to solve. #2094 ### Solutions You should show your solutions about the issues in your PR,...

size/XXL
cla:no
First-time contributor

https://github.com/mosn/mosn/blob/42c4dc0563480a508822b1e106dac789732d5eab/pkg/upstream/healthcheck/session_checker.go#LL162C22-L162C33 CheckHealth 方法

https://github.com/mosn/mosn/blob/f20464f60fe98cc69684bf3d510ce88214227841/pkg/proxy/retrystate.go#LL50C34-L50C35 ``` if retryPolicy.NumRetries() > rs.retiesRemaining { rs.retiesRemaining = retryPolicy.NumRetries() } ``` 这里感觉可以直接改成如下 ``` rs.retiesRemaining = retryPolicy.NumRetries() ``` 由用户自定义即可

### 支持Http1流式响应 目前Http1响应是通过fasthttp response.Read阻塞读取完整的头和响应体后再整体返回https://github.com/mosn/mosn/blob/master/pkg/stream/http/stream.go#L292,对于服务端流式响应(如server-sent event)并不友好 ### Your advice 1. 可以在http1 clientStreamConnection完成响应头和体的分别读取,直接响应,后续流程兼容 2. 参考类似于http2处理方式,读到header和body后交给后续流程处理,后续流程通过pipe buffer回写 ### Environment - MOSN Version

kind/feature
WIP

### Describe the bug `func convertFilterChainMatch(filterChainMatch *envoy_config_listener_v3.FilterChainMatch) (chainMatch string, destinationPort uint32) { chainMatch = filterChainMatch.String() if filterChainMatch.GetDestinationPort() != nil { destinationPort = filterChainMatch.GetDestinationPort().Value } return }` 这个方法获取当filterChainMatch为nil时,chainMatch为“”字符串,这个对MOSN运行没有问题吗? ### Expected behavior...

### Describe the bug 现象:client -serverStream-> mosn -clientStream-> server, 当clientStream读取响应发生错误时(比如响应头超过8KB),直接进行reset归还了activeClient没有关闭连接,此时clientStreamConnection.serve已经退出。由于active已经归还,后续复用时已经没有clientStreamConnection.serve任务去处理响应了,因此会卡死。 原因: pkg/stream/http/stream.go:265 ![image](https://github.com/mosn/mosn/assets/43239328/6687225f-840c-442e-b2f5-a5f5abe623b4) pkg/stream/http/stream.go:300 未关闭连接 ![image](https://github.com/mosn/mosn/assets/43239328/d1243d17-5e99-4230-bc55-3b63d705a92f) ![image](https://github.com/mosn/mosn/assets/43239328/08e4031a-bda4-489c-8c8a-0ae88be3949c) 归还activeClient ![image](https://github.com/mosn/mosn/assets/43239328/8db872ad-3435-4ce8-877f-8ffc52f3e2cc) ![image](https://github.com/mosn/mosn/assets/43239328/7dee3690-bc8a-4a56-8e40-504766fdd18f) reset后return ![image](https://github.com/mosn/mosn/assets/43239328/d3c39671-1b9e-4338-9adf-ba8451f188b8) 可能的解决方案:reset前设置activeClient.closeConn = true使该连接关闭 ### Expected behavior ### Actual...

``` 2023-06-05 16:19:35,506 goroutine panic: runtime error: index out of range [4294967295] with length 161318 goroutine 13716 [running]: runtime/debug.Stack() /tmp/usr/local/go/src/runtime/debug/stack.go:24 +0x65 gitlab.alibaba-inc.com/apsara-edge/mosn/vendor/mosn.io/pkg/utils.defaultRecoverLogger({0x2055240, 0xc0001b4010}, {0x1c5c940, 0xc00235c018}) /home/admin/63_20230327172516619_476609323_code/rpm_workspace/go/src/gitlab.alibaba-inc.com/apsara-edge/mosn/vendor/mosn.io/pkg/utils/goroutine.go:37 +0x5a gitlab.alibaba-inc.com/apsara-edge/mosn/vendor/mosn.io/pkg/utils.GoWithRecover.func1.1() /home/admin/63_20230327172516619_476609323_code/rpm_workspace/go/src/gitlab.alibaba-inc.com/apsara-edge/mosn/vendor/mosn.io/pkg/utils/goroutine.go:45 +0x62...

场景:需要转发请求,但是因为地域原因,延迟比较高。初次使用,还会因为要新建连接,导致延迟更高。所以想做一个连接的预热 需求: 1. 我想在项目初始化的时候,针对特定的集群,做固定数量的连接初始化,减少建立连接的耗时 2. 同时,我想后台定时查询集群下空余连接数量,及时做补充,保持idle client个数在一个固定比例 想请教下有什么好的做法?

kind/feature
area/upstream
help wanted

### Describe the bug Some crypto/tls unit tests failed when running under Go 1.20 The full test log can be found at https://github.com/mosn/mosn/actions/runs/4707421740/jobs/8350950037 The same test can pass under Go...

### Your question According to the comment in https://github.com/mosn/mosn/blob/35258919244aa5c751d036af199414824230c230/.github/workflows/reviewdog.yml#L31-L41 Since the latest Go version is 1.20 now, maybe we can upgrade the Go requirement to 1.19? ### Environment - MOSN...