mirror of
https://github.com/boostorg/beast.git
synced 2025-07-30 04:47:29 +02:00
@ -1,6 +1,7 @@
|
|||||||
Version 171:
|
Version 171:
|
||||||
|
|
||||||
* Add handler_ptr::has_value
|
* Add handler_ptr::has_value
|
||||||
|
* Remove spurious assert
|
||||||
|
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -138,14 +138,8 @@ operator()(
|
|||||||
d.cont = cont;
|
d.cont = cont;
|
||||||
BOOST_ASIO_CORO_REENTER(*this)
|
BOOST_ASIO_CORO_REENTER(*this)
|
||||||
{
|
{
|
||||||
// Maybe suspend
|
// Attempt to acquire write block
|
||||||
if(d.ws.wr_block_.try_lock(this))
|
if(! d.ws.wr_block_.try_lock(this))
|
||||||
{
|
|
||||||
// Make sure the stream is open
|
|
||||||
if(! d.ws.check_open(ec))
|
|
||||||
goto upcall;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
// Suspend
|
// Suspend
|
||||||
BOOST_ASIO_CORO_YIELD
|
BOOST_ASIO_CORO_YIELD
|
||||||
@ -159,12 +153,12 @@ operator()(
|
|||||||
boost::asio::post(
|
boost::asio::post(
|
||||||
d.ws.get_executor(), std::move(*this));
|
d.ws.get_executor(), std::move(*this));
|
||||||
BOOST_ASSERT(d.ws.wr_block_.is_locked(this));
|
BOOST_ASSERT(d.ws.wr_block_.is_locked(this));
|
||||||
|
|
||||||
// Make sure the stream is open
|
|
||||||
if(! d.ws.check_open(ec))
|
|
||||||
goto upcall;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Make sure the stream is open
|
||||||
|
if(! d.ws.check_open(ec))
|
||||||
|
goto upcall;
|
||||||
|
|
||||||
// Can't call close twice
|
// Can't call close twice
|
||||||
BOOST_ASSERT(! d.ws.wr_close_);
|
BOOST_ASSERT(! d.ws.wr_close_);
|
||||||
|
|
||||||
|
@ -626,12 +626,8 @@ operator()(
|
|||||||
goto upcall;
|
goto upcall;
|
||||||
|
|
||||||
close:
|
close:
|
||||||
if(ws_.wr_block_.try_lock(this))
|
// Try to acquire the write block
|
||||||
{
|
if(! ws_.wr_block_.try_lock(this))
|
||||||
// Make sure the stream is open
|
|
||||||
BOOST_ASSERT(ws_.status_ == status::open);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
// Suspend
|
// Suspend
|
||||||
BOOST_ASIO_CORO_YIELD
|
BOOST_ASIO_CORO_YIELD
|
||||||
|
Reference in New Issue
Block a user