mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2025-05-15 01:08:27 +00:00
Fixed timeout issues
This commit is contained in:
parent
63643e6386
commit
21c529229c
2 changed files with 48 additions and 11 deletions
|
@ -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; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue