Skip to content

Bound flushRawStdout waiting on stalled print-mode pipes #453

Description

@m-aebrer

Summary

flushRawStdout() can wait indefinitely when stdout remains backpressured below the queue cap and no drain event arrives.

Context

Discovered while reviewing #452. That pull request's dashboard RPC path does not call flushRawStdout; the current caller is print-mode shutdown, so this was deferred as separate hardening.

Current Behavior

Drain waiters resolve only from the queue's drain handler. If the consumer stalls after writes stop, no further cap check occurs and the flush promise never settles or emits a diagnostic.

Desired Behavior

Define and test a bounded, loud failure policy for a permanently stalled print-mode stdout flush without weakening normal drain behavior.

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions