Skip to content

Commit

Permalink
errors were missing part of the url
Browse files Browse the repository at this point in the history
  • Loading branch information
braindigitalis committed Nov 17, 2024
1 parent 192b8ae commit c34c2d8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/dpp/queues.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
#ifdef _WIN32
/* Central point for forcing inclusion of winsock library for all socket code */
#include <io.h>
#pragma comment(lib,"ws2_32")
#endif
#include <dpp/queues.h>
#include <dpp/cluster.h>
Expand Down Expand Up @@ -231,10 +230,10 @@ http_request_completion_t http_request::run(in_thread* processor, cluster* owner
result.latency = dpp::utility::time_f() - start;
if (client->timed_out) {
result.error = h_connection;
owner->log(ll_error, "HTTP(S) error on " + hci.scheme + " connection to " + request_verb[method] + " " + hci.hostname + ":" + std::to_string(hci.port) + endpoint + ": Timed out while waiting for the response");
owner->log(ll_error, "HTTP(S) error on " + hci.scheme + " connection to " + request_verb[method] + " " + hci.hostname + ":" + std::to_string(hci.port) + _url + ": Timed out while waiting for the response");
} else if (cli->get_status() < 100) {
result.error = h_connection;
owner->log(ll_error, "HTTP(S) error on " + hci.scheme + " connection to " + request_verb[method] + " " + hci.hostname + ":" + std::to_string(hci.port) + endpoint + ": Malformed HTTP response");
owner->log(ll_error, "HTTP(S) error on " + hci.scheme + " connection to " + request_verb[method] + " " + hci.hostname + ":" + std::to_string(hci.port) + _url + ": Malformed HTTP response");
}
populate_result(_url, owner, result, *client);
/* Set completion flag */
Expand Down

0 comments on commit c34c2d8

Please sign in to comment.