Skip to content

Commit 74f55af

Browse files
committed
Merge branch 'main' of https://github.com/cmliu/edgetunnel
2 parents 1166003 + 1c20518 commit 74f55af

3 files changed

Lines changed: 472 additions & 222 deletions

File tree

CHANGELOG

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
## [2.1.20260724150359] - 2026-07-24 15:03:59
2+
3+
### Change
4+
5+
- 同步 **GrainTCP** 最新传输优化:上行 Grain 合包目标由 `16KB` 调整为 `20KB`,并复用统一的收纳/合包核心;连续小块会在 drain 阶段机会性合并,减少高频 `writer.write()` 调用。[上游提交](https://github.com/ToiCF/GrainTCP/commit/1d22628f4d1413989f521f1d41591b0c72e658eb)
6+
- 优化下行 **GrainTCP** 聚合:保留 `32KB` 聚合上限,使用 `tail × 12` 低水位和最多 `4` 轮、每轮 `1ms` 的增长观察;flush 可连续发送多个聚合包,接近上限时及时发送,降低小包 WebSocket frame 数量。[上游提交](https://github.com/ToiCF/GrainTCP/commit/1d22628f4d1413989f521f1d41591b0c72e658eb)
7+
- 优化下行数据包处理:大块数据在 Grain 为空时直接发送,小块数据在 BYOB/default reader 路径中先脱离可复用读取缓冲;聚合结果复制后再发送,避免 scratch buffer 复用造成数据覆盖。[上游提交](https://github.com/ToiCF/GrainTCP/commit/1d22628f4d1413989f521f1d41591b0c72e658eb)
8+
- 基于上游传输模型增强 TCP 连接管理:加入 connection generation、socket identity 和旧下行 drain 屏障;重拨期间上行数据继续收纳并等待新 writer,旧 reader、定时器或连接的异步收尾不会污染新连接。[上游思路](https://github.com/ToiCF/GrainTCP/commit/1d22628f4d1413989f521f1d41591b0c72e658eb)
9+
- 基于上游 Grain 发送模型统一直发、分段发送、定时 flush 的串行发送链,并持久化异步发送错误;响应头仅在首次真实发送时消费,避免重拨或失效连接提前消耗协议响应头。[上游思路](https://github.com/ToiCF/GrainTCP/commit/1d22628f4d1413989f521f1d41591b0c72e658eb)
10+
- 保持现有多协议兼容性:WS 上行采用非等待入队以降低消息处理阻塞,XHTTP/gRPC 继续等待远端写入完成;本地保留 `16MiB / 4096` 条目的上传高水位保护,避免 Worker 队列无界增长。[上游变更](https://github.com/ToiCF/GrainTCP/commit/1d22628f4d1413989f521f1d41591b0c72e658eb)
11+
- 优化 仅在 **反代模式** 下启用本地测速响应,使用 **SOCKS5/HTTP/HTTPS/TURN/SSTP** 代理时改为正常转发测速请求。
12+
113
## [2.1.20260722191426] - 2026-07-22 19:14:26
214

315
### Change

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,10 @@
124124
| **PROXYIP** || `proxyip.cmliussss.net:443` | 全局自定义反代 IP |
125125
| **URL** || `https://cloudflare-error-page-3th.pages.dev` | 默认主页伪装地址(可填写网页 URL 或 `1101`|
126126
| **GO2SOCKS5** || `blog.cmliussss.com`,`*.ip111.cn`,`*google.com` | 强制走 SOCKS5 的名单 (`*` 为全局,域名用逗号分隔) |
127-
| **DEBUG** || `1``true` | **开发者模式**默认关闭调试日志功能(console.log),设置`1``true`则开启调试日志功能 |
128-
| **OFF_LOG** || `1``true` | 默认开启日志记录功能,设置`1``true`则关闭日志记录功能 |
129-
| **BEST_SUB** || `1``true` | 默认关闭作为**优选订阅生成器**的功能,设置`1``true`则开启该功能 |
130-
| **PRELOAD_RACE_DIAL** || `1``true` | 默认关闭作为**预加载竞速拨号**的功能,设置`1``true`则开启该功能 |
127+
| **DEBUG** || `1``true` | **开发者模式**默认**关闭**调试日志功能(console.log),设置`1``true`**开启**调试日志功能 |
128+
| **OFF_LOG** || `1``true` | 默认**开启**KV日志记录功能,设置`1``true`**关闭**日志记录功能 |
129+
| **BEST_SUB** || `1``true` | 默认**关闭**作为**优选订阅生成器**的功能,设置`1``true`**开启**该功能 |
130+
| **PRELOAD_RACE_DIAL** || `0``false` | 默认**开启**作为**预加载竞速拨号**的功能,设置`0``false`**关闭**该功能 |
131131
| **TCP_CONCURRENT_DIAL** || `2` | **TCP 并发拨号数**,默认值为`2`;设置后不再根据中国移动网络自动降为单路 |
132132
| **PROXY_CONCURRENT_DIAL** || `1` | **反代并发拨号数**,默认值为`1`;数值越高连接速度越快,但 IP 切换也越频繁 |
133133

@@ -186,9 +186,8 @@
186186

187187
## 🙏 特别鸣谢
188188
### 💖 赞助支持 - 提供云服务器维持[订阅转换服务](https://sub.cmliussss.net/)
189-
- [Alice](https://url.cmliussss.com/alice)
190-
- [EasyLinks](https://www.vmrack.net?ref_code=5Zk7eNhbgL7)
191-
- [ZMTO(VTEXS)](https://zmto.com/?affid=1532)
189+
- [Yuusei Network](https://yuusei.io/)
190+
- [VMRack](https://www.vmrack.net?ref_code=5Zk7eNhbgL7)
192191

193192
### 🛠 开源代码引用
194193
- [zizifn/edgetunnel](https://github.com/zizifn/edgetunnel)
@@ -208,6 +207,7 @@
208207
- [zhangtaile](https://github.com/cmliu/edgetunnel/pull/999)
209208
- [1345695](https://github.com/1345695/edcloudwasm)
210209
- [ToiCF/GrainTCP](https://github.com/ToiCF/GrainTCP)
210+
- [xream](https://github.com/cmliu/edgetunnel/pull/1359)
211211

212212
---
213213

0 commit comments

Comments
 (0)