Skip to content

Commit 0685728

Browse files
tboundy-trimblegigaplex
authored andcommitted
Work around leak of http_request when _complete is never called
1 parent 11fa3ee commit 0685728

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Release/src/http/listener/http_server_httpsys.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -769,7 +769,8 @@ void windows_request_context::init_response_callbacks(ShouldWaitForBody shouldWa
769769

770770
if (shouldWait == DontWaitForBody)
771771
{
772-
proxy_content_ready.set();
772+
// Fake a body completion so the content_ready() task doesn't keep the http_request alive forever
773+
m_msg._get_impl()->_complete(0);
773774
}
774775
}
775776

0 commit comments

Comments
 (0)