Skip to content

quic: Add mechanism similar to waitUntilAvailable to create(Bi|Uni)directionalStream #65321

Closed

Description

@martenrichter

The webtransport W3 spec allows to pass the option waitUntilAvailable to functions creating streams,
see e,g, here for a bidi stream:

https://www.w3.org/TR/webtransport/#dom-webtransport-createbidirectionalstream

The idea is that if the stream number flow control is exhausted, you have the option for waitUntilAvailable, which if it is set to false throw and tells the caller, that the flow control window for streams is exhausted.

(Alternatively, we can also supply a property to query the current budget).

The same is true for unidirectional stream.

@jasnell @pimterry
What would you think is a good api for this?
P.S: After the stream and session data flow control handling got attention. I will probably after this is decided, activate my stream number flow control tests on webtransport. As the stream number flow control is a another playing field that can easily lead to stalls. (Though I do not know if something is wrong.....)

Activity

  1. jasnell commented on Aug 16, 2026

    @jasnell
    Member

    I think an option passed in makes the most sense (default false)

    const stream = session.createBidirectionalStream({ waitUntilAvailable: true });
  2. martenrichter commented on Aug 16, 2026

    @martenrichter
    ContributorAuthor

    I made a PR:
    #65331

  3. added
    quicIssues and PRs related to the QUIC transport implementation.
    on Aug 18, 2026
  4. added a commit that references this issue on Sep 27, 2026
    462c353
  5. github-actions commented on Nov 17, 2026

    @github-actions
    Contributor

    This issue has been marked as stale due to 90 days of inactivity.
    It will be automatically closed in 30 days if no further activity occurs. If this is still relevant, please leave a comment or update it to keep it open.

  6. added
    staleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.
    on Nov 17, 2026
  7. martenrichter commented on Nov 17, 2026

    @martenrichter
    ContributorAuthor

    Well the PR is already approved...., will be closed soon.

  8. removed
    staleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.
    on Nov 18, 2026
  9. added a commit that references this issue on Nov 19, 2026
    3521a6e
  10. added a commit that references this issue on Nov 20, 2026
    27b8b0b
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

    quicIssues and PRs related to the QUIC transport implementation.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions