summaryrefslogtreecommitdiff
path: root/it_url.class
diff options
context:
space:
mode:
authorNathan Gass2025-09-09 10:56:18 +0200
committerNathan Gass2025-09-09 10:56:18 +0200
commitcd78478397cdae2686ce90f2bb18678fc10a14f2 (patch)
treeabaa6d6d59813e55cdfb679e1e33682a3375cce8 /it_url.class
parent73004cf10a28b8f0b9420c44440a5c56b0406257 (diff)
downloaditools-cd78478397cdae2686ce90f2bb18678fc10a14f2.tar.gz
itools-cd78478397cdae2686ce90f2bb18678fc10a14f2.tar.bz2
itools-cd78478397cdae2686ce90f2bb18678fc10a14f2.zip
disable connection reuse as it leads to problems with search_mt.classHEADmaster
Diffstat (limited to 'it_url.class')
-rw-r--r--it_url.class1
1 files changed, 1 insertions, 0 deletions
diff --git a/it_url.class b/it_url.class
index a937212..26390eb 100644
--- a/it_url.class
+++ b/it_url.class
@@ -264,6 +264,7 @@ static function curl_opts($p=array())
$add += [CURLOPT_ENCODING => $p['accept_encoding']]; # NOTE: the curl library renamed the option to CURLOPT_ACCEPT_ENCODING, in php both are possible, CURLOPT_ENCODING is documented
return $add + [
+ CURLOPT_FORBID_REUSE => true,
CURLOPT_HEADER => false,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_TIMEOUT_MS => $p['totaltimeout'] * 1000, # use _MS to support fractions of seconds