Moved max_allowed_packet to be an attribute