mirror of
https://github.com/boostorg/beast.git
synced 2025-08-01 22:04:34 +02:00
Move the handler, don't copy it
This commit is contained in:
@@ -1,3 +1,11 @@
|
|||||||
|
1.0.0-b31
|
||||||
|
|
||||||
|
WebSocket
|
||||||
|
|
||||||
|
* Move the handler, don't copy it
|
||||||
|
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
1.0.0-b30
|
1.0.0-b30
|
||||||
|
|
||||||
WebSocket
|
WebSocket
|
||||||
|
@@ -1059,15 +1059,8 @@ operator()(error_code const& ec, bool again)
|
|||||||
case 0:
|
case 0:
|
||||||
// read payload
|
// read payload
|
||||||
d.state = 1;
|
d.state = 1;
|
||||||
#if 0
|
|
||||||
// VFALCO This causes dereference of null, because
|
|
||||||
// the handler is moved from the data block
|
|
||||||
// before asio_handler_deallocate is called.
|
|
||||||
d.ws.async_read_frame(
|
d.ws.async_read_frame(
|
||||||
d.fi, d.db, std::move(*this));
|
d.fi, d.db, std::move(*this));
|
||||||
#else
|
|
||||||
d.ws.async_read_frame(d.fi, d.db, *this);
|
|
||||||
#endif
|
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// got payload
|
// got payload
|
||||||
|
Reference in New Issue
Block a user