RequestServer: Clean up the CURLM "multi handle" when client drops

Otherwise we may leak all kinds of things inside CURL.
This commit is contained in:
Andreas Kling 2024-12-25 17:33:23 +01:00 committed by Andreas Kling
parent 1c61ccef40
commit 7cd6ea6f33
Notes: github-actions[bot] 2024-12-25 18:15:39 +00:00

View file

@ -270,6 +270,10 @@ ConnectionFromClient::ConnectionFromClient(IPC::Transport transport)
ConnectionFromClient::~ConnectionFromClient()
{
m_active_requests.clear();
curl_multi_cleanup(m_curl_multi);
m_curl_multi = nullptr;
}
void ConnectionFromClient::die()