Skip to content

ctxio: propagate IO deadline via context.AfterFunc#35

Merged
noxiouz merged 1 commit intovarlink:masterfrom
noxiouz:ctxio_afterfunc
Oct 7, 2025
Merged

ctxio: propagate IO deadline via context.AfterFunc#35
noxiouz merged 1 commit intovarlink:masterfrom
noxiouz:ctxio_afterfunc

Conversation

@noxiouz
Copy link
Collaborator

@noxiouz noxiouz commented Oct 5, 2025

Bump to go 1.21
context.AfterFunc schedules a function once ctx get cancelled. Use ut to interrupt I/O on Conn. If a deadline has not been reached scheduling gets canceled.
This version also fixes a bug when attached deadline stays on a socket if deadline/cancellation has not happened.

Bump to go 1.21
context.AfterFunc schedules a function once ctx get cancelled.
Use ut to interrupt I/O on Conn. If a deadline has not been reached
scheduling gets canceled.
This version also fixes a bug when attached deadline stays on a socket
if deadline/cancellation has not happened.
@noxiouz noxiouz merged commit ec4cb63 into varlink:master Oct 7, 2025
6 checks passed
@noxiouz noxiouz deleted the ctxio_afterfunc branch October 7, 2025 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants