diff options
Diffstat (limited to 'http/http_connection.h')
-rw-r--r-- | http/http_connection.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/http/http_connection.h b/http/http_connection.h index ca3314b7e0..8aaabcddaa 100644 --- a/http/http_connection.h +++ b/http/http_connection.h @@ -340,7 +340,8 @@ class Connection : { needToCallAfterHandlers = true; res.completeRequestHandler = [self(shared_from_this())] { - self->completeRequest(); + boost::asio::post(self->adaptor.get_executor(), + [self] { self->completeRequest(); }); }; if (req->isUpgrade() && boost::iequals( |