From 1523cc3142d66c5a9ad9438e05628e11a302cc79 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Thu, 26 Nov 2020 12:28:03 +0100 Subject: [PATCH] Set an explicit timeout for FontManager's HttpClient --- wcfsetup/install/files/lib/system/style/FontManager.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/style/FontManager.class.php b/wcfsetup/install/files/lib/system/style/FontManager.class.php index d9bbd95b79..d55120ef42 100644 --- a/wcfsetup/install/files/lib/system/style/FontManager.class.php +++ b/wcfsetup/install/files/lib/system/style/FontManager.class.php @@ -31,7 +31,8 @@ class FontManager extends SingletonFactory { */ protected function init() { $this->http = HttpFactory::makeClient([ - 'base_uri' => 'https://fonts.woltlab.com/' + 'base_uri' => 'https://fonts.woltlab.com/', + 'timeout' => 10, ]); } -- 2.20.1