From 7c26826d3c485f4f18a6c427f520dc470e68f94a Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sat, 20 Apr 2013 14:25:24 +0200 Subject: [PATCH 1/1] When unwrapping in set_backlog_size, do not add a spurious Metacube header. --- stream.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stream.cpp b/stream.cpp index ab08a0f..5ea2cd0 100644 --- a/stream.cpp +++ b/stream.cpp @@ -111,7 +111,7 @@ void Stream::set_backlog_size(size_t new_size) // Now cheat a bit by rewinding, and adding all the old data back. bytes_received -= existing_data.size(); - add_data(existing_data.data(), existing_data.size()); + add_data_raw(existing_data.data(), existing_data.size()); } void Stream::put_client_to_sleep(Client *client) -- 2.39.2