jd-opensource / jd-opensource/framework-go
websvr_test.go 里面的国密测试没过这个是预期的结果?
- Dominant language
- Go
- Stars
- 8
- Forks
- 6
- PR merge metrics
- No merged PRs in 30d
Description
测试代码里的server是配置的`config, err := loadAutoSwitchConfig()` 自动切换支持,是不是应该支持gm客户端访问的?
https://github.com/jd-opensource/framework-go/blob/abb88261b8ad887e5c122e750a5a5c201102bf73/gmsm/gmtls/websvr/websvr_test.go#L168
```
=== RUN Test_tls
>> HTTP Over [GMSSL/TLS] running...
HTTP/1.1 200 OK
Date: Fri, 20 Jun 2025 02:36:07 GMT
Content-Length: 6
Content-Type: text/plain; charset=utf-8
Connection: close
hello
>> RSA TLS [PASS]
handshake error : local error: tls: no renegotiation
handshake error : EOF
panic: EOF
goroutine 14 [running]:
github.com/blockchain-jd-com/framework-go/gmsm/gmtls/websvr.gmClientRun()
/github.com/blockchain-jd-com/framework-go/gmsm/gmtls/websvr/websvr_test.go:103 +0x49d
created by github.com/blockchain-jd-com/framework-go/gmsm/gmtls/websvr.Test_tls in goroutine 7
/github.com/blockchain-jd-com/framework-go/gmsm/gmtls/websvr/websvr_test.go:174 +0x85
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.