]> _ Git - psq.git/commitdiff
log
authorLouis Jeckel <louis.jeckel@outlook.com>
Thu, 3 Dec 2020 11:55:54 +0000 (12:55 +0100)
committerLouis Jeckel <louis.jeckel@outlook.com>
Thu, 3 Dec 2020 11:55:54 +0000 (12:55 +0100)
app/Invokables/GetPageTitleFromUrl.php

index 1bb8b35ef58808d2ef157f5aa4402e0137e3daed..1e0e8a25c58b33ca0dfe4a2ee52f822c05e042a6 100644 (file)
@@ -28,6 +28,10 @@ class GetPageTitleFromUrl
 
         curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
 
+        curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10);
+
+        curl_setopt($ch, CURLOPT_TIMEOUT, 10);
+
         $str = curl_exec($ch);
 
         curl_close($ch);