If we get the Metacube sync marker but not the right of the header,
we can set has_metacube_header, and then return. If the connection
drops right there, the flag won't be correctly reset, and if the
next connection starts with something that's not a Metacube block,
we will try to read junk data as Metacube.
Thankfully, the assert caught this case.
request_bytes_sent = 0;
response.clear();
pending_data.clear();
+ has_metacube_header = false;
for (size_t i = 0; i < stream_indices.size(); ++i) {
servers->set_header(stream_indices[i], "", "");
}