Skip to content

conn: optionally deliver channel response after EOF on read#981

Merged
pkova merged 4 commits intodevelopfrom
jb/fix-conn-eof
Mar 13, 2026
Merged

conn: optionally deliver channel response after EOF on read#981
pkova merged 4 commits intodevelopfrom
jb/fix-conn-eof

Conversation

@joemfb
Copy link
Copy Markdown
Collaborator

@joemfb joemfb commented Mar 13, 2026

Includes and supersedes #892, ensuring no behavior change for mars/urth IPC pipe.

mikolajpp and others added 4 commits October 10, 2025 14:13
Conn protocol closes the channel as soon as an EOF is received
from a read request. This is at odds with a typical usage of conn,
where separate programs are used to send a command and receive a result.

We modify this behavior by calling moat `bal_f` only on genuine read errors.
Furthermore, in conn.c we close the channel after processing the effect
if we detect that the read end of the pipe has closed.
@joemfb joemfb requested a review from a team as a code owner March 13, 2026 13:10
@pkova pkova merged commit a1aa075 into develop Mar 13, 2026
2 checks passed
@pkova pkova deleted the jb/fix-conn-eof branch March 13, 2026 15:33
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.

3 participants