Commit a347de18 authored by Brad King's avatar Brad King
Browse files

Merge branch 'fix-cmake-server-bad-buffering' into release-3.10

Merge-request: !1498
parents 47c2baf0 01c42155
......@@ -97,11 +97,10 @@ void cmEventBasedConnection::ReadData(const std::string& data)
this->RawReadBuffer += data;
if (BufferStrategy) {
std::string packet = BufferStrategy->BufferMessage(this->RawReadBuffer);
do {
while (!packet.empty()) {
ProcessRequest(packet);
packet = BufferStrategy->BufferMessage(this->RawReadBuffer);
} while (!packet.empty());
}
} else {
ProcessRequest(this->RawReadBuffer);
this->RawReadBuffer.clear();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment