[x] session::do_write() has a memory issue, the string msg parameter can be destroyed before it's actually written with async_write since it's an asynchronous operation
[x] do_read() calls do_write() multiple times, and do_write() calls do_read() again. I believe that this is causing a lot of asynchronous operations to be leaked and perpetually waiting
msg
parameter can be destroyed before it's actually written withasync_write
since it's an asynchronous operationdo_read()
callsdo_write()
multiple times, anddo_write()
callsdo_read()
again. I believe that this is causing a lot of asynchronous operations to be leaked and perpetually waiting