Skip to content

Packet fragmentation #3174

Answered by nibanks
Beatle95 asked this question in Q&A
Discussion options

You must be logged in to vote

But is it possible to receive not full packet in stream callback (on RECEIVE event)?

I am assuming you mean a "send buffer or call" you pass to StreamSend when you say "packet" above. Send calls on the stream are buffers of streamed data. They are not atomic units of data sent as one. If you make a send call with 100 bytes in one buffer, it's entirely possible that gets fragmented into multiple QUIC packets, which are in turn received individually and then possibly delivered to the app individually.

Based on what it sounds like you're doing, another option might be to use a completely separate stream for each "app packet". Streams in QUIC are very light weight. With a single StreamSend …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Beatle95
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants