missed cast in debug print
removing unused constant
fix cast to short int
ConnectionTest: read less bytes, avoids blocking read()
Packet buffer now uses a growing std::vector instead of a fixed-size byte array. This fixes buffer overflows in Packet::write* calls when producing packets larger than the default buffer size, e.g., when sending 100+ messages in a single Kafka ProduceRequest.