websocketpp icon indicating copy to clipboard operation
websocketpp copied to clipboard

memory leak

Open harryGuo133 opened this issue 2 years ago • 1 comments

template <typename connection, typename config> void endpoint<connection,config>::send(connection_hdl hdl, std::string const & payload, frame::opcode::value op) { lib::error_code ec; send(hdl,payload,op,ec); if (ec) { throw exception(ec); } }

__m_websocktServer.send(spMsg->getWebsocketHdl(),msg, websocketpp::frame::opcode::value::text);

The functions and methods used are as above The current behavior is that during the program run, the send function is repeatedly called, and msg is not empty. The memory is continuously reduced as the call time becomes. If there is a lot of content in msg, the memory will be reduced faster

harryGuo133 avatar Nov 17 '23 06:11 harryGuo133

Any solution found for this? I am observing memory leaks with this library too.

abhinavdhamaniya-jm avatar Nov 26 '24 10:11 abhinavdhamaniya-jm