Skip to content

Commit

Permalink
I have no idea what are those payload_final2_size1 and payload_final2…
Browse files Browse the repository at this point in the history
…_size2 are.

But it seems that if we set the payload size to a larger value than the frames size,
the trailer packet is also appended to the payload transfer. The trailer is expected
to be a separate transfer though. We set the maximum transfer size to the frame size
(which is effectively equal to the value of payload_final2_size1) - this guarantees
that the trailer will be always received in another separate bulk transfer.
  • Loading branch information
dmikushin committed Nov 3, 2024
1 parent a746684 commit a7c8371
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions cameleon/src/u3v/stream_handle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -552,9 +552,6 @@ fn read_payload(
async_pool.submit(&mut buf[cursor..cursor + params.payload_final1_size])?;
cursor += params.payload_final1_size;
}
if params.payload_final2_size != 0 {
async_pool.submit(&mut buf[cursor..cursor + params.payload_final2_size])?;
}

Ok(())
}
Expand Down

0 comments on commit a7c8371

Please sign in to comment.