Fixed timeout issues

This commit is contained in:
yhirose 2021-04-16 22:03:57 -04:00 committed by yhirose
parent 63643e6386
commit 21c529229c
2 changed files with 48 additions and 11 deletions

View file

@ -3145,7 +3145,10 @@ static bool send_request(time_t read_timeout_sec, const std::string &req,
auto client_sock =
detail::create_client_socket(HOST, PORT, AF_UNSPEC, false, nullptr,
/*timeout_sec=*/5, 0, std::string(), error);
/*connection_timeout_sec=*/5, 0,
/*read_timeout_sec=*/5, 0,
/*write_timeout_sec=*/5, 0,
std::string(), error);
if (client_sock == INVALID_SOCKET) { return false; }