If the first message has more than 2048 bytes you will pass all the next messages of this type. Before summation you should check the buffer size.