boostorg / beast

HTTP and WebSocket built on Boost.Asio in C++11
http://www.boost.org/libs/beast
Boost Software License 1.0
4.37k stars 639 forks source link

pausation should post #960

Closed vinniefalco closed 6 years ago

vinniefalco commented 6 years ago

We can reduce the amount of code and guarantee the proper invariant by making pausation call asio::post when it resumes the operation. This will require passing the executor in the initial call to emplace, and correctly type-erasing it.

vinniefalco commented 6 years ago

Actually this won't work because usually a composed operation acquires a read or write block before posting.