Skip to content

Instantly share code, notes, and snippets.

Created March 20, 2018 16:56
Show Gist options
  • Save anonymous/efaceeefc4b9d0a27e9dde3735546c5e to your computer and use it in GitHub Desktop.
Save anonymous/efaceeefc4b9d0a27e9dde3735546c5e to your computer and use it in GitHub Desktop.
diff --git a/src/ui.c b/src/ui.c
index 5c4e42d..fa42e6e 100644
--- a/src/ui.c
+++ b/src/ui.c
@@ -205,6 +205,7 @@ static CURLcode BarPianoHttpRequest (CURL * const http,
setAndCheck (CURLOPT_PROGRESSDATA, &lint);
setAndCheck (CURLOPT_NOPROGRESS, 0);
setAndCheck (CURLOPT_POST, 1);
+ setAndCheck (CURLOPT_TIMEOUT, 30);
if (settings->caBundle != NULL) {
setAndCheck (CURLOPT_CAINFO, settings->caBundle);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment