mirror of
https://github.com/boostorg/beast.git
synced 2025-07-30 21:07:26 +02:00
@ -2,6 +2,7 @@ Version 168:
|
|||||||
|
|
||||||
* Use executor_work_guard in composed operations
|
* Use executor_work_guard in composed operations
|
||||||
* Revert verb.ipp change which caused spurious warnings
|
* Revert verb.ipp change which caused spurious warnings
|
||||||
|
* Fix race in advanced server examples
|
||||||
|
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -924,6 +924,15 @@ public:
|
|||||||
void
|
void
|
||||||
run()
|
run()
|
||||||
{
|
{
|
||||||
|
// Make sure we run on the strand
|
||||||
|
if(! strand_.running_in_this_thread())
|
||||||
|
return boost::asio::post(
|
||||||
|
boost::asio::bind_executor(
|
||||||
|
strand_,
|
||||||
|
std::bind(
|
||||||
|
&plain_http_session::run,
|
||||||
|
shared_from_this())));
|
||||||
|
|
||||||
// Run the timer. The timer is operated
|
// Run the timer. The timer is operated
|
||||||
// continuously, this simplifies the code.
|
// continuously, this simplifies the code.
|
||||||
on_timer({});
|
on_timer({});
|
||||||
@ -996,6 +1005,15 @@ public:
|
|||||||
void
|
void
|
||||||
run()
|
run()
|
||||||
{
|
{
|
||||||
|
// Make sure we run on the strand
|
||||||
|
if(! strand_.running_in_this_thread())
|
||||||
|
return boost::asio::post(
|
||||||
|
boost::asio::bind_executor(
|
||||||
|
strand_,
|
||||||
|
std::bind(
|
||||||
|
&ssl_http_session::run,
|
||||||
|
shared_from_this())));
|
||||||
|
|
||||||
// Run the timer. The timer is operated
|
// Run the timer. The timer is operated
|
||||||
// continuously, this simplifies the code.
|
// continuously, this simplifies the code.
|
||||||
on_timer({});
|
on_timer({});
|
||||||
|
@ -578,6 +578,15 @@ public:
|
|||||||
void
|
void
|
||||||
run()
|
run()
|
||||||
{
|
{
|
||||||
|
// Make sure we run on the strand
|
||||||
|
if(! strand_.running_in_this_thread())
|
||||||
|
return boost::asio::post(
|
||||||
|
boost::asio::bind_executor(
|
||||||
|
strand_,
|
||||||
|
std::bind(
|
||||||
|
&http_session::run,
|
||||||
|
shared_from_this())));
|
||||||
|
|
||||||
// Run the timer. The timer is operated
|
// Run the timer. The timer is operated
|
||||||
// continuously, this simplifies the code.
|
// continuously, this simplifies the code.
|
||||||
on_timer({});
|
on_timer({});
|
||||||
|
Reference in New Issue
Block a user