Skip to content

fix(socket): retry interrupted TLS writes and mark the channel dead on every TLS write error #1794

Closed

Description

@FlorentinDUBOIS

Follow-up to #1787 and #1790.

  • flush_tls (lib/src/socket.rs) handles an interrupted write (EINTR) in the generic error arm: the write answers Error and marks the channel dead, where the relay and the UDP path retry it.
  • FrontRustls::socket_write/socket_write_vectored return Error without setting peer_reset on a rustls writer failure and on the write loop's budget, so the records still read as pending and the session can only close on its timeout.
  • Four of the new peer_reset assignments, the H2 refusal records of consume_output_flush and handle_write, and the WouldBlock case of the control-frame drains have no test. Two test names and a CHANGELOG/LIFECYCLE sentence no longer match what they assert.

Activity

  1. added a commit that references this issue on Oct 2, 2026
    dc25d2f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions