Skip to content

Commit

Permalink
Add a 2s connection timeout
Browse files Browse the repository at this point in the history
This makes the manual addition of printers much more responsive.
  • Loading branch information
attah committed Sep 9, 2023
1 parent f16687b commit b8cc61c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/curlrequester.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ CurlRequester::CurlRequester(std::string addr, bool ignoreSslErrors, bool verbos
{
curl_easy_setopt(_curl, CURLOPT_URL, addr.c_str());
curl_easy_setopt(_curl, CURLOPT_VERBOSE, verbose);
curl_easy_setopt(_curl, CURLOPT_CONNECTTIMEOUT_MS, 2000);

if(ignoreSslErrors)
{
Expand Down

0 comments on commit b8cc61c

Please sign in to comment.