Skip to content

Commit

Permalink
cleanup timed out connections
Browse files Browse the repository at this point in the history
  • Loading branch information
copperlight committed Sep 21, 2023
1 parent 9800936 commit 66023cf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spectator/http_client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ auto HttpClient::perform(const char* method, const std::string& url,
if (elapsed < total_timeout && attempt_number < 2) {
entry.set_attempt(attempt_number, false);
entry.log();
curl_easy_cleanup(&curl);
return perform(method, url, std::move(headers), payload, size,
attempt_number + 1);
}
Expand Down

0 comments on commit 66023cf

Please sign in to comment.