Skip to content
This repository was archived by the owner on Mar 5, 2026. It is now read-only.

Commit 62f1972

Browse files
committed
AsyncWebSocket: Use shared_ptr for buffers
Replace the hand-rolled buffer management logic with an RAII buffer class based on std::shared_ptr. This simplifies memory management and seems to fix a memory leak, while also offering a clean move semantic for clients. The previous API is preserved through a compatibility object; it is flagged as deprecated as the old API required a specialized allocator, which is now unneccessary, so for compatibility reasons an extra heap allocation is used.
1 parent 8b41e4f commit 62f1972

4 files changed

Lines changed: 312 additions & 223 deletions

File tree

0 commit comments

Comments
 (0)