Add ReadLimit to Option structs
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 38/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- go
调研方向
首先定位 AcceptOptions 和 DialOptions 的定义以及 SetReadLimit 方法,然后追踪每个选项如何创建连接。确定零值字段应如何与默认限制交互,以及该方法是否必须继续可用于动态更改。完成标准是:两个选项结构体都可以配置初始读取限制,同时不移除该方法现有的行为。
由索引模型根据 Issue 内容生成。
描述
Would it be possible to add a field to AcceptOptions and to DialOptions that sets the read limit on the created connection? It's not as convenient to have to call the SetReadLimit(). If the field is 0 then a default limit can be applied.
Is there a need to change the limit dynamically? I mean, why is it a method (i.e. can be called multiple times) vs a field in those option setting structs?
- 主要语言
- Go
- 星标
- 5.5k
- 派生
- 379
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
coder/websocket 的其他 Issue
-
Must not wrap io.EOF可能已有人在做 @Yanhu007 于 175 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
-
难度 2/5 1-3 小时 新手友好度 68/100
-
export wstest未关闭enhancement
难度 2/5 1-3 小时 新手友好度 68/100
-
wasm: Close with codes other than 1000 throws, so CloseNow never closes可能已有人在做 @0pcom 于 1 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 20/100
-
难度 4/5 3-5 天 新手友好度 42/100
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
难度 1/5 1-3 小时 新手友好度 90/100
FootprintAI/Containarium#2338 ·
维护者通常 1 天内回复
-
[Bug]: core doesn't build standalone on dev since a17068054 (go-mp3 require dropped, go.sum pruned)未关闭
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 85/100
SagerNet/sing-openvpn#11 ·
-
priority: P3 type: devops
难度 2/5 1-3 小时 新手友好度 75/100
jiegui2025/hwspec#57 ·
维护者通常 1 天内回复