ngtcp2 icon indicating copy to clipboard operation
ngtcp2 copied to clipboard

The first bytes of the first frame in a stream

Open nEghbal opened this issue 3 years ago • 3 comments

I realized that the first bytes of the first frame of a stream (fr->offset = 0) are not the data. It seems a header. And its size gets bigger as the resource size grows. What this header contains and what is the relation between its size and the resource size?

Thanks.

nEghbal avatar Aug 28 '22 11:08 nEghbal

If you are asking about QUIC frame specification, please read RFC 9000.

tatsuhiro-t avatar Aug 29 '22 10:08 tatsuhiro-t

I am asking about the first bytes of the data part of the first frame of a stream. When I am looking into fr->data[0].base in conn_recv_stream() of ngtcp2_conn.c, for the first 15-18 bytes of the first frame of stream they are not the resource file data, I was wondering what they are.

Thanks.

nEghbal avatar Sep 03 '22 10:09 nEghbal

If you are asking about the contents of STREAM frame, it is application data. I do not know which application protocol you are running on QUIC. If it is HTTP/3, refer to HTTP/3 protocol specification.

tatsuhiro-t avatar Sep 03 '22 10:09 tatsuhiro-t

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] avatar Aug 02 '23 02:08 github-actions[bot]