Questions about expensive packet put
- 2014-08-11 @ 09:45
I tested to make a Packet instance having big size data.
At first, I created Packet.
pk = Packet::make(100, NULL, total_buf_size, 100).
Then, I put additional space in the buffer.
However, following warning still came out.
expensive Packet::put; have 0 wanted 1024
I changed total_buf_size but it was ineffective.
Only I set the tailroom size to 1024 was no warnings.
What is the safe way to put space in the packet?
Should I create WritablePacket instance with enough tailroom size in the