Skip to content

Packet->append does increase the data region, but the packet len value stays the same. #14

@sarsanaee

Description

@sarsanaee

Once we allocate a packet, we usually append some free space to be able to fit our data in the packet.

The way we are doing this is by calling packet->alloc. This, however, does not change the packet length property.

So if we call packet->length() we do not observe the new length there. Check here as an example:

auto *response = CHECK_NOTNULL(packet_pool_->PacketAlloc());

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions