coder / coder/websocket

SetReadDeadline (an alternative to deadline contexts)

未关闭
#252 5 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
enhancement
主要语言
Go
星标
5.5k
派生
372
PR 合并指标
30 天内没有已合并 PR

描述

Hey,

For the continuous reads, it's convenient to use something like Gorilla's SetReadDeadline, instead of creating a new context each time a Read is called. Though I know Gorilla's encapsulating the net.Conn, while this pkg isn't. How do you think is it possible to add something like that in this library?

贡献指南

这个仓库没有索引到贡献指南

调研方向

首先检查库对 continuous-read 和 Read 上下文的处理,然后将其与 Gorilla 的 SetReadDeadline 以及该包与 net.Conn 的关系进行比较。确定在不暴露 net.Conn 的情况下是否可行地提供等效 API,包括其 deadline 语义以及如何验证完成状态。

由索引模型根据 Issue 内容生成。

评估

技术栈
go
领域
networking
Issue 类型
功能
难度
5/5
预计耗时
一周以上
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。