Skip to content

Commit

Permalink
[C] Only include timestamps on packets which carry the begin fragment…
Browse files Browse the repository at this point in the history
… flag. aeron-io#1514.
  • Loading branch information
mikeb01 committed Oct 16, 2023
1 parent 85ff71f commit a073c55
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions aeron-driver/src/main/c/media/aeron_timestamps.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ void aeron_timestamps_set_timestamp(

if (frame_length >= sizeof(aeron_data_header_t) &&
AERON_HDR_TYPE_DATA == data_header->frame_header.type &&
AERON_DATA_HEADER_BEGIN_FLAG & data_header->frame_header.flags &&
0 != data_header->frame_header.frame_length)
{
size_t body_length = frame_length - sizeof(aeron_data_header_t);
Expand Down

0 comments on commit a073c55

Please sign in to comment.