Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

constant chunk size? #50

Open
sschulz-t opened this issue Mar 5, 2024 · 1 comment
Open

constant chunk size? #50

sschulz-t opened this issue Mar 5, 2024 · 1 comment

Comments

@sschulz-t
Copy link

Regarding

### Stream Packet Structure {#packet-stream-structure}

Are all chunks (except the last one) of the same size?

Example:
1000 Bytes payload split to 400 + 400 + 200 Bytes

Is it also allowed to send:
1000 Bytes payload split to 400 + 100 + 200 + 300 Bytes ?

I must admit that I have no real use case for this but the specification should be clear on that. Otherwise some verifiers might implement it that way and break compatibility.

@gsasikumar
Copy link
Collaborator

As the MTU is negotiated, the chunk size is expected to follow the MTU size except the last one. The total content size is known so the last chunk can be less.

so 1000 Bytes payload split to 400 + 400 + 200 Bytes is correct if the negotiated MTU is ~400

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants