Skip to content

stream_send while tx_cap is 0 does not create a new stream #1125

Done

Description

@kevinjohna6

On both 0.10.0 and master calling stream_send with a new stream id while tx_cap is 0 does not internally create a new stream. (behavior introduced here and modified on master in #1099)
This is an issue in my application because, if a new stream is not created in quiche, writable() will never trigger further attempts to send that stream's data.

Moving get_or_create_stream before the tx_cap check passes my use case. See 94c9a06 for my test and patch.

The patch breaks two preexisting tests that try to initiate a stream with ID 8 (Client-Initiated, Bidirectional) from the server. Earlier stream_send would just return Error::Done since the cap was reached, but now the other error is returned first.

Activity

  1. added
    type: bugfix
    area: streams
    on Nov 24, 2026
  2. ghedo commented on Nov 25, 2026

    @ghedo
    Member

    Fixed by c9311a1, released in 0.17.1. stream_send() now creates the stream before it checks the connection's send capacity, so the stream exists even when the call returns Done.

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

    area: streamstype: bugfix

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions