Migrate connection_t from storing a huge buffer to a std::vector