From 97e040e0487cf3b23bc1109f10752410b838c8c8 Mon Sep 17 00:00:00 2001 From: default Date: Sat, 17 Dec 2022 18:52:57 +0100 Subject: Backport from xs. --- xs_curl.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'xs_curl.h') diff --git a/xs_curl.h b/xs_curl.h index 386fe8b..335c07a 100644 --- a/xs_curl.h +++ b/xs_curl.h @@ -101,7 +101,9 @@ d_char *xs_http_request(char *method, char *url, d_char *headers, curl_easy_setopt(curl, CURLOPT_URL, url); +#ifdef FORCE_TIMEOUT curl_easy_setopt(curl, CURLOPT_TIMEOUT, 5L); +#endif #ifdef FORCE_HTTP_1_1 /* force HTTP/1.1 */ -- cgit v1.2.3