Skip to content

Releases: zhaojh329/rtty-go

v1.1.1

17 Aug 13:50

Choose a tag to compare

🚀 Enhancements

  • HTTP proxy performance: Use sync.Pool for HTTP read buffers to reduce memory allocations and GC pressure, improving memory efficiency for HTTP traffic.
  • HTTP connection termination: Improved handling of server-side HTTP disconnections by implementing a zero-length message notification mechanism, ensuring proper notification and cleanup.
  • HTTP connection cancellation: Use context.Context for RttyHttpConn cancellation, making connection shutdown more robust.

🐛 Bug Fixes

  • Heartbeat reconnection: Reset waitingHeartbeat flag in the Close method to prevent stale state and abnormal heartbeat behavior after reconnections.
  • Remote command response size: Enforced a maximum remote command response size of 65536 bytes to prevent communication errors.

Full Changelog: v1.1.0...v1.1.1


🚀 增强

  • HTTP 代理性能:HTTP 代理读取缓冲区使用 sync.Pool,减少内存分配和 GC 压力,提高 HTTP 流量的内存效率。
  • HTTP 连接终止:通过零长度消息通知机制改进服务端 HTTP 断开处理,确保设备端能正确收到断开通知并清理资源。
  • HTTP 连接取消RttyHttpConn 连接取消机制改为使用 context.Context,连接关闭更健壮。

🐛 问题修复

  • 心跳重连:在 Close 方法中重置 waitingHeartbeat 标志,防止重连后心跳状态异常。
  • 远程命令响应大小:强制远程命令响应最大为 65536 字节,防止通信异常。

完整变更记录: v1.1.0...v1.1.1

v1.1.0

09 Aug 05:45

Choose a tag to compare

🚀 New Features

Configuration Support

  • Added configuration file support - Support for configuration files to simplify deployment and management

Enhanced HTTP Proxy

  • HTTPS support - HTTP proxy now supports HTTPS

Cross-Platform Improvements

  • 32-bit ARM Linux support - Added build support for linux/arm architecture

🔧 Improvements

Code Architecture

  • Protocol package extraction - Extracted common protocol code into a reusable proto package that can be shared between rtty-go and rttys

Logging Improvements

  • Better initialization - Fixed log initialization process to ensure proper logging configuration
  • Debug log placement - Moved configuration debug logs after logger initialization

🐛 Bug Fixes

  • TTY session count - Fixed incorrect TTY session counting
  • HTTP Proxy - Fixed HTTP proxy
  • 32-bit overflow - Fixed file size limit overflow on 32-bit architectures
  • Message length validation - Fixed message length validation for MsgTypeTermData and MsgTypeHttp

Full Changelog: v1.0.0...v1.1.0


🚀 新功能

配置文件支持

  • 新增配置文件支持 - 支持配置文件,简化部署和管理

增强 HTTP 代理

  • HTTPS 支持 - HTTP 代理现在支持 HTTPS

跨平台改进

  • 32 位 ARM Linux 支持 - 新增对 linux/arm 架构的构建支持

🔧 改进

代码架构

  • 协议包抽取 - 将通用协议代码抽取到可复用的 proto 包中,可在 rtty-go 和 rttys 之间共享

日志改进

  • 更好的初始化 - 修复日志初始化过程,确保正确的日志配置
  • 调试日志位置 - 将配置调试日志移至日志器初始化之后

🐛 问题修复

  • TTY 会话计数 - 修复错误的 TTY 会话计数
  • HTTP代理 - 修复 HTTP 代理
  • 32 位溢出 - 修复 32 位架构上的文件大小限制溢出
  • 消息长度验证 - 修复 MsgTypeTermData 和 MsgTypeHttp 的消息长度验证

完整变更记录: v1.0.0...v1.1.0

v1.0.0

28 Jul 15:24

Choose a tag to compare

init

Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>