From fc78953f8519cc0d0161c72b2c600e3876a7b6cf Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Thu, 26 Nov 2020 12:29:23 +0100 Subject: [PATCH] Set an explicit timeout for ImageProxyAction's HttpClient --- wcfsetup/install/files/lib/action/ImageProxyAction.class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/action/ImageProxyAction.class.php b/wcfsetup/install/files/lib/action/ImageProxyAction.class.php index ccf779d3db..a6d37519e6 100644 --- a/wcfsetup/install/files/lib/action/ImageProxyAction.class.php +++ b/wcfsetup/install/files/lib/action/ImageProxyAction.class.php @@ -94,7 +94,9 @@ class ImageProxyAction extends AbstractAction { // download image try { - $client = HttpFactory::getDefaultClient(); + $client = HttpFactory::makeClient([ + 'timeout' => 10, + ]); $request = new Request('GET', $url, [ 'via' => '1.1 wsc', 'accept' => 'image/*', -- 2.20.1