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