-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Closed
Description
Hi,
I must be doing something wrong:
httplib::Client http_client(url);
auto timeout = std::chrono::milliseconds(200);
http_client.set_connection_timeout(timeout);
http_client.set_read_timeout(timeout);
http_client.set_write_timeout(timeout);
auto tic = std::chrono::system_clock::now();
http_client.Get(
"endpoint",
params,
headers
);
std::cout << std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::system_clock::now() -tic).count() << std::endl;
This prints 1861 (ms). I was expecting that it gives up waiting after 200 ms. What could be the issue?
Thanks
Metadata
Metadata
Assignees
Labels
No labels