From 67348c95f4b1b6c1824945b6690feca5e069bcb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= Date: Fri, 27 Mar 2020 01:36:07 +0100 Subject: [PATCH] add timeout to curl request --- app/post.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/post.class.php b/app/post.class.php index 4cfbd6b..24e38fe 100644 --- a/app/post.class.php +++ b/app/post.class.php @@ -254,6 +254,7 @@ class Post curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (compatible; Proxycat/1.1)"); curl_setopt($ch, CURLOPT_REFERER, ''); + curl_setopt($ch, CURLOPT_TIMEOUT, 7); // 7sec // Proxy settings if($proxy = Config::get_safe("proxy", false)){