Releases: aceld/zinx
v1.2.7
What's Changed
- Address potential risks detected by Southeast University's threat detection scan.(针对东南大学威胁检测扫描所发现的安全风险进行处置) by @aceld in #331
- fix: read lock -> write lock by @waylennn in #333
- rename zconf/zconf.go by @aceld in #335
- resolve [start] server log repeat print by @aceld in #336
- delete log flag-china by @aceld in #337
- Feature/dynamic bind: 增加DynamicBind工作池模式,类似于Bind工作池模式,每个连接绑定一个worker, 但不像Bind模式那样会闲置很多worker by @jursonmo in #339
- feat: 扩展websocket鉴权与wsConn的关联 by @ppanphper in #344
- 修复:如果程序里同时启动了 Server 和 Client ,GlobalObject 混淆的问题 by @aceld in #350
- Writer 修改:压缩时后缀变为微秒级别 + 按大小切割时考虑缓冲区中未写入的数据 + appendInt 疑似为重复代码 by @yuyuyu258963 in #346
- 更正注释错误 by @YanHeDoki in #351
- Bump golang.org/x/crypto from 0.21.0 to 0.31.0 by @dependabot in #353
- Fix CodeQL: Actions Job or Workflow does not set permissions by @aceld in #354
- fix CodeQL:Unpinned tag for a non-immutable Action in workflow by @aceld in #355
- feat: 优化缓冲发送逻辑,减少缓冲发送小数据包的频繁系统调用 by @EquentR in #358
- fix typo by @gongxuanzhang in #359
- fix: update vulnerable dependency golang.org/x/net to v0.33.0 by @cannian1 in #360
- delete FrameDecoder lock, delete Decode() lock by @aceld in #362
- fix:修复Client中共享变量conn的可见性问题 by @xzc-coder in #370
- 解决getCurWorker 获取worker的时候,出现多协程竞争的问题 by @aceld in #365
- feat: support ws path by @rysinal in #371
- feat: support custom header for ws client by @rysinal in #372
- Feature: SendBuffMsg api with timeout by @jursonmo in #374
- 修复并发情况下AsyncOpResult可能导致callback调用丢失潜在问题 by @aceld in #376
- build(deps): bump golang.org/x/crypto from 0.31.0 to 0.35.0 by @dependabot in #378
- build(deps): bump golang.org/x/net from 0.33.0 to 0.38.0 by @dependabot in #379
New Contributors
- @jursonmo made their first contribution in #339
- @ppanphper made their first contribution in #344
- @yuyuyu258963 made their first contribution in #346
- @EquentR made their first contribution in #358
- @gongxuanzhang made their first contribution in #359
- @cannian1 made their first contribution in #360
- @xzc-coder made their first contribution in #370
- @rysinal made their first contribution in #371
Full Changelog: v1.2.6...v1.2.7
v1.2.6
What's Changed
-
fix(connection): Move close
msgBuffChan
to the write side to avoid sending to a closed channel.
修复(连接): 将关闭msgBuffChan
的操作移动到写入端,以避免向已关闭的通道发送消息。
by @GStones in #321 -
增加kcp-go的 fec配置
Added FEC configuration for kcp-go
by @luodaoyi in #322 -
fix(decoder): Move decoder to interceptor head
修复(解码器): 将解码器移至拦截器头部
by @GStones in #325 -
Upgrade
golang.org/x/net
to version 0.23.0
升级golang.org/x/net
到版本 0.23.0
by @aceld in #328 -
Bump
google.golang.org/protobuf
from 1.26.0 to 1.33.0
将google.golang.org/protobuf
从 1.26.0 升级到 1.33.0
by @dependabot in #329 -
connection
isClose
方法判断,防止c.ctx
不存在导致程序 panic
AddedisClose
method check in connection to prevent program panic whenc.ctx
is absent
by @yunxi177 in #330
New Contributors
-
@dependabot made their first contribution in #329
Full Changelog: v1.2.5...v1.2.6
Zinx v1.2.5 (Stable)
Update
- LICENSE:GPL3.0 -> MIT 692cfcf
- Add a new module called RequestPool. (新增RequestPool模块) #312
- Refactor verifyLogIsolation() for a more concise expression.(重构 verifyLogIsolation() 以获得更简洁的表达式) #287
- Change SendBuffMsg() to SendToQueue() #295
- Add several configuration options for setting up KCP connections. (新增若干配置项用于设置KCP Connection) #299
- In an independent coroutine, addclosecallback() can add any number of callback methods to conn, and execute them in the order they were added when conn.stop() is called.(独立协程中,addclosecallback()可为conn添加任意个回调方法,并在conn.stop时按添加顺序执行) #301
- Update the way of cyclically registering HeartBeat routes. (更新循环注册HeartBeat路由的方式) #304
- The management of Request objects is changed to be handled by a sync pool object pool, and the usage of Request context is enhanced. (Request 对象改由sync pool 对象池管理,并且增强 Request 上下文使用) #305
- When WebSocket starts, console prompts.(websocket 启动时,控制台提示) #311
- Remove unnecessary info logs.(去除不必要的info日志) #314
Fix
- Fix [Panic]: send on closed channel. (修复极端大流量情况偶现写管道Panic错误) #318 #319
- Fix routerSlice deep copy.(修复routerSlice路由配置深拷贝问题) #294
- Fix go protobuf v1.26 msg.pb.go compatibility. #306
- Fix Request read-write lock to the lock itself instead of a pointer, reducing null safety risks. (修正Request读写机制,防止空指针风险) #307
- Fix htlv MaxFrameLength. 879a33e
Zinx v1.2.2
Update
- KCP Protocol Support (KCP快速UDP协议支持) #256
- Shard lock Map (部分model 互斥升级为Shard lock) #250
- Connection with CAS (Connection模块部分协程同步采用CAS机制) #285
- Use env replace flag(环境变量ENV模式取代flag模式)#280
- Reduce buffer allocation times to improve efficiency(减少缓冲区分配时间以提高效率) #258
- golangci-lint Support #237
- Make the hash algorithm in shardLock more abstract #273
- Lowest go version 1.17 (兼容最低go版本1.17) #276 #278
Fix
新增日志存储策略-压缩
1、按照天进行日志分割;
2、也可以按照单个文件大小分割;
3、可以设置日志存储天数,默认31天;
4、日志压缩zip保存
新增日志存储策略
v1.1.18
zinx HeartBeat,Interceptor stable version
- 新增Zinx心跳检测机制
- 新增Zinx拦截器能力
- 新增Zinx调试tcp工具
- 新增Zinx自定义报文能力