add message payload size reservation

This commit is contained in:
Peter Thorson
2014-02-10 08:39:20 -06:00
parent ba6320ba1c
commit 722a67a910

View File

@@ -396,7 +396,8 @@ public:
m_extended_header
)
);
// TODO: reserve space in the existing message for the new bytes
out.reserve(out.size() + m_bytes_needed);
}
m_current_msg = &m_data_msg;
}