size_t for msg_size?