coder / coder/websocket

SetReadDeadline (an alternative to deadline contexts)

Open
#252 5 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
5.5k
Forks
372
PR merge metrics
No merged PRs in 30d

Description

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?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reviewing the library's continuous-read and Read context handling, then compare it with Gorilla's SetReadDeadline and the package's relationship to net.Conn. Define whether an equivalent API is feasible without exposing net.Conn, including its deadline semantics and how completion would be verified.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
networking
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.