IXWebSocketTransport message processing refactoring

This commit is contained in:
Benjamin Sergeant
2019-09-03 15:48:55 -07:00
parent fdd1ad9b17
commit b4c4746d43
2 changed files with 14 additions and 26 deletions

View File

@ -149,7 +149,7 @@ namespace ix
// messages (tested messages up to 700M) and we cannot put them in a single
// buffer that is resized, as this operation can be slow when a buffer has its
// size increased 2 fold, while appending to a list has a fixed cost.
std::list<std::vector<uint8_t>> _chunks;
std::list<std::string> _chunks;
// Record the message kind (will be TEXT or BINARY) for a fragmented
// message, present in the first chunk, since the final chunk will be a