feat(notify): 重构通信内核并补齐 stream/bulk/record/transfer 能力
- 引入 LogicalConn/TransportConn 分层,ClientConn 保留兼容适配层 - 新增 Stream、Bulk、RecordStream 三条数据面能力及对应控制路径 - 完成 transfer/file 传输内核与状态快照、诊断能力 - 补齐 reconnect、inbound dispatcher、modern psk 等基础模块 - 增加大规模回归、并发与基准测试覆盖 - 更新依赖库
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
//go:build notify_manual_soak
|
||||
// +build notify_manual_soak
|
||||
|
||||
package notify
|
||||
|
||||
import (
|
||||
@@ -9,6 +12,14 @@ import (
|
||||
"time"
|
||||
)
|
||||
|
||||
// This file contains long-running manual soak/stress tests.
|
||||
//
|
||||
// They intentionally use fixed ports, background loops and coarse sleeps, so
|
||||
// they are excluded from the default go test/go vet release gate. Run them
|
||||
// explicitly with:
|
||||
//
|
||||
// go test -tags notify_manual_soak -run 'Test_ServerTuAndClientCommon|Test_normal|Test_normal_udp'
|
||||
|
||||
func Test_ServerTuAndClientCommon(t *testing.T) {
|
||||
//go http.ListenAndServe("0.0.0.0:8888", nil)
|
||||
noEn := func(key, bn []byte) []byte {
|
||||
@@ -16,6 +27,9 @@ func Test_ServerTuAndClientCommon(t *testing.T) {
|
||||
}
|
||||
_ = noEn
|
||||
server := NewServer()
|
||||
if err := UseModernPSKServer(server, integrationSharedSecret, integrationModernPSKOptions()); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
//server.SetDefaultCommDecode(noEn)
|
||||
//server.SetDefaultCommEncode(noEn)
|
||||
err := server.Listen("tcp", "127.0.0.1:12345")
|
||||
@@ -26,6 +40,10 @@ func Test_ServerTuAndClientCommon(t *testing.T) {
|
||||
for i := 1; i <= 100; i++ {
|
||||
go func() {
|
||||
client := NewClient()
|
||||
if err := UseModernPSKClient(client, integrationSharedSecret, integrationModernPSKOptions()); err != nil {
|
||||
t.Fatal(err)
|
||||
return
|
||||
}
|
||||
//client.SetMsgEn(noEn)
|
||||
//client.SetMsgDe(noEn)
|
||||
//client.SetSkipExchangeKey(true)
|
||||
|
||||
Reference in New Issue
Block a user