Skip to content

fix(runtimed): preserve error type in handshake I/O#593

Merged
rgbkrk merged 1 commit intomainfrom
quill/luxembourg-v1
Mar 8, 2026
Merged

fix(runtimed): preserve error type in handshake I/O#593
rgbkrk merged 1 commit intomainfrom
quill/luxembourg-v1

Conversation

@rgbkrk
Copy link
Member

@rgbkrk rgbkrk commented Mar 8, 2026

Fixes review feedback from PR #590. Uses .context() instead of .map_err() to preserve the underlying std::io::Error when adding context to handshake I/O errors. This allows is_connection_closed() to downcast and suppress normal disconnects (ConnectionReset, BrokenPipe, UnexpectedEof) instead of logging them as hard errors.

Verification

  • Daemon starts and accepts normal client connections
  • Client disconnects are silent (no error logs)
  • Timeout after 10s with stalled connections still works

PR submitted by @rgbkrk's agent, Quill

Use .context() instead of .map_err() to add context while preserving the
underlying std::io::Error. This allows is_connection_closed() to downcast
and suppress normal disconnects (ConnectionReset, BrokenPipe, UnexpectedEof)
instead of logging them as hard errors.

Fixes review feedback on PR #590.
@rgbkrk rgbkrk enabled auto-merge (squash) March 8, 2026 00:25
@rgbkrk rgbkrk merged commit c4551ee into main Mar 8, 2026
14 checks passed
@rgbkrk rgbkrk deleted the quill/luxembourg-v1 branch March 8, 2026 00:30
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.

1 participant