From 78e2f44a888d46a7dd66d4d6952c7479cc2277c9 Mon Sep 17 00:00:00 2001 From: Kaishiyoku Date: Sun, 12 Mar 2023 21:37:21 +0100 Subject: [PATCH] added timeout of five seconds to default HTTP client --- src/HeraRssCrawler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/HeraRssCrawler.php b/src/HeraRssCrawler.php index 67319aa..f4ee43f 100644 --- a/src/HeraRssCrawler.php +++ b/src/HeraRssCrawler.php @@ -67,7 +67,7 @@ public function __construct() 'Accept' => 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8', 'Accept-Encoding' => 'gzip, deflate', ], - 'timeout' => 2, + 'timeout' => 5, ]); $this->cssConverter = new CssSelectorConverter(); $this->feedDiscoverers = new Collection([