Optionally skip copying into connection arena for appendMessage

This commit is contained in:
2025-08-19 13:44:16 -04:00
parent 455ab749a6
commit 0d688d9ce9
2 changed files with 10 additions and 6 deletions

View File

@@ -40,7 +40,7 @@ struct Connection {
~Connection();
// Handler interface - public methods that handlers can use
void appendMessage(std::string_view s);
void appendMessage(std::string_view s, bool copyToArena = true);
void closeAfterSend() { closeConnection_ = true; }
ArenaAllocator &getArena() { return arena_; }
int64_t getId() const { return id_; }