Skip to content

Commit 48e7cfc

Browse files
authored
[coro_http] fix life-time of transfer_connection (#936)
fix life-time
1 parent c687e8e commit 48e7cfc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/ylt/standalone/cinatra/coro_http_server.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,7 @@ class coro_http_server {
653653
std::string_view head_msg) {
654654
auto conn = accept_impl(std::move(soc), true);
655655
conn->add_head(head_msg);
656-
conn->start(true).via(conn->get_executor()).detach();
656+
start_one(conn).via(conn->get_executor()).detach();
657657
}
658658

659659
private:

0 commit comments

Comments
 (0)