Skip to content

quic: http/3 datagrams partially diverge from spec #63891

In progress

Description

@martenrichter

Http datagrams are according to spec composed as:

HTTP/3 Datagram {
  Quarter Stream ID (i),
  HTTP Datagram Payload (..),
}

and beside this a normal quic datagram.
If I understand the current implementation correctly, the quarter stream id of the bidirectional stream is not included,
and just unfiltered quicdatagrams are sent.
Of course, it is not difficult to sort this issue out on js side, but may be users may stumble upon this.
@jasnell @pimterry what do you think?

Implementing this would not be really hard.

Activity

  1. pimterry commented on Jun 13, 2026

    @pimterry
    Member

    Yep, I'm on it, I've got a working version already. It's one place where the HTTP vs QUIC conflict really bites since both APIs support the same thing in explicitly incompatible ways (session-linked vs stream-linked).

  2. martenrichter commented on Jun 14, 2026

    @martenrichter
    ContributorAuthor

    Well the users can also implement it manually:
    fails-components/webtransport@1fbd2f1
    But the required additional copy and parsing on the JS side is not really a good idea.

  3. jasnell commented on Jun 14, 2026

    @jasnell
    Member

    worth doing right built-in.

  4. added
    quic
    on Jun 15, 2026
  5. pimterry commented on Jun 17, 2026

    @pimterry
    Member

    My working version for Node runs on top of the existing APIs, and it's OK, but it requires reimplementing QUIC varint en/decoding in a way that's a bit messy, it doesn't really fit neatly, and it duplicates parts of what ngtcp2/nghttp3 are doing already unnecessarily (or alternatively, requires including their internals, which isn't great either).

    I think this should live somewhere else, so I've opened ngtcp2/nghttp3#528 to add h3 datagram support to nghttp3 directly instead. That ends up much cleaner for everybody, and it'll be very easy to consume those APIs directly once we update (assuming they accept it - if not it's not the end of the world, we can reimplement here if need be).

  6. moved this from In Progress to Design in QUIC Teamon Aug 8, 2026
  7. added
    http3
    on Aug 8, 2026
  8. github-actions commented on Nov 18, 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.

  9. added
    stale
    on Nov 18, 2026
  10. martenrichter commented on Nov 18, 2026

    @martenrichter
    ContributorAuthor

    Well... should be kept open, the as the PR is currently blocked.

  11. removed
    stale
    on Nov 19, 2026
  12. moved this from Design to In Progress in QUIC Teamon Nov 24, 2026
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

    http3quic

    Type

    No type

    Projects

    • Status
      In Progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions