docs(README): Removed v0.5.0 update content and added an acknowledgments section.

This commit is contained in:
Gouryella
2026-01-04 11:31:33 +08:00
parent 11ca454659
commit 8c8a848320
2 changed files with 8 additions and 54 deletions

View File

@@ -46,33 +46,6 @@
| Interstitial Page | None | Yes (removable with header) |
| Open Source | ✓ | ✗ |
## What's New in v0.5.0
### 🔄 Switched to Yamux Protocol
Our custom multiplexing protocol had too many edge-case bugs. We replaced it with [yamux](https://github.com/hashicorp/yamux), HashiCorp's battle-tested stream multiplexing library.
**Why Yamux?**
- Production-proven in Consul, Nomad, and other critical infrastructure
- Built-in flow control and keepalive support
- Active maintenance and community support
**What changed:**
- Removed: Custom HPACK compression, flow control, binary framing, HTTP codec
- Added: Yamux-based connection pooling and session management
- Result: ~60% less protocol code, significantly improved stability
### ⚡ Performance Improvements
| Metric | Improvement |
|--------|-------------|
| Connection setup | 3x faster (session reuse) |
| Memory per tunnel | -50% (simplified state) |
| Latency (p99) | -40% (fewer encoding layers) |
| Throughput | +80% (efficient multiplexing) |
> ⚠️ **Breaking Change**: Protocol incompatible with v0.4.x. Upgrade both client and server.
## Quick Install
```bash
@@ -305,6 +278,10 @@ drip config show Show current config
drip config set <key> <value>
```
## Acknowledgements
- [yamux](https://github.com/hashicorp/yamux) - Stream multiplexing library powering Drip's connection multiplexing
## License
BSD 3-Clause License - see [LICENSE](LICENSE) for details

View File

@@ -46,33 +46,6 @@
| 中间页 | 无 | 有(加请求头可移除) |
| 开源 | ✓ | ✗ |
## v0.5.0 更新内容
### 🔄 切换到 Yamux 协议
自研的多路复用协议存在较多边界情况的 bug难以复现和修复。我们决定暂时放弃自研协议改用 HashiCorp 久经考验的 [yamux](https://github.com/hashicorp/yamux) 库。
**为什么选择 Yamux**
- 生产环境验证,被 Consul、Nomad 等关键基础设施广泛使用
- 内置流控和心跳保活
- 活跃的社区维护
**变更内容:**
- 移除:自研 HPACK 压缩、流控机制、二进制帧协议、HTTP 编解码器
- 新增:基于 Yamux 的连接池和会话管理
- 结果:协议层代码减少约 60%,稳定性显著提升
### ⚡ 性能提升
| 指标 | 提升幅度 |
|------|----------|
| 连接建立 | 快 3 倍(会话复用) |
| 单隧道内存占用 | -50%(状态简化) |
| 延迟 (p99) | -40%(减少编码层) |
| 吞吐量 | +80%(高效多路复用) |
> ⚠️ **破坏性变更**:协议与 v0.4.x 不兼容,客户端和服务端需同时升级。
## 快速安装
```bash
@@ -304,6 +277,10 @@ drip config show 显示当前配置
drip config set <键> <值>
```
## 鸣谢
- [yamux](https://github.com/hashicorp/yamux) - 为 Drip 的连接复用提供支持的流复用库
## 协议
BSD 3-Clause License - 详见 [LICENSE](LICENSE)