Add test that shows parsing issue

It's meant to show the pipelining issue. I guess we'll solve the
newly-discovered parsing issue first.
This commit is contained in:
2025-09-14 22:24:02 -04:00
parent 1f61f91bf5
commit fac6b8de88
3 changed files with 101 additions and 2 deletions

View File

@@ -128,7 +128,7 @@ struct Connection : MessageSender {
* ```
*/
void append_message(std::span<std::string_view> data_parts, Arena arena,
bool close_after_send = false) override;
bool close_after_send) override;
/**
* @brief Get a WeakRef to this connection for async operations.

View File

@@ -426,7 +426,7 @@ void HttpHandler::handle_get_metrics(Connection &conn,
for (auto sv : metrics_span) {
*out++ = sv;
}
conn.append_message(result, std::move(state.arena));
conn.append_message(result, std::move(state.arena), state.connection_close);
state.reset();
}