Set an explicit timeout for FontManager's HttpClient
authorTim Düsterhus <duesterhus@woltlab.com>
Thu, 26 Nov 2020 11:28:03 +0000 (12:28 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Thu, 26 Nov 2020 11:28:03 +0000 (12:28 +0100)
wcfsetup/install/files/lib/system/style/FontManager.class.php

index d9bbd95b793bde2c4cef7acf2f6fa1648a0fd408..d55120ef4290fea28bd131cf1dd9d1c8b64c1030 100644 (file)
@@ -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,
                ]);
        }