Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
curl: prefer TIMEVALUE_LARGE
Baptiste Daroussin committed 2 years ago
commit 4e9a4ba98520fe8f9db2e6147e77a7985baa4839
parent f2c0aef
1 file changed +1 -1
modified libpkg/fetch_libcurl.c
@@ -463,7 +463,7 @@ retry:
	curl_easy_setopt(cl, CURLOPT_XFERINFODATA, &data);
	curl_easy_setopt(cl, CURLOPT_HEADERFUNCTION, curl_parseheader_cb);
	curl_easy_setopt(cl, CURLOPT_HEADERDATA, &data);
-
	curl_easy_setopt(cl, CURLOPT_TIMEVALUE, (long)fi->mtime);
+
	curl_easy_setopt(cl, CURLOPT_TIMEVALUE_LARGE, (curl_off_t)fi->mtime);
	curl_easy_setopt(cl, CURLOPT_TIMECONDITION, (long)CURL_TIMECOND_IFMODSINCE);
	if (repo->fetcher->timeout > 0) {
		curl_easy_setopt(cl, CURLOPT_CONNECTTIMEOUT, repo->fetcher->timeout);