From a275a1b7a2de784f3ef7d8960c6ef7e46fe1a630 Mon Sep 17 00:00:00 2001 From: Brad Bell Date: Tue, 20 Aug 2024 19:16:11 -0700 Subject: [PATCH 1/2] Add a default connect_timeout of 15 seconds for all craftnet Api requests --- src/services/Api.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/services/Api.php b/src/services/Api.php index 10877f4728a..7fcec58a961 100644 --- a/src/services/Api.php +++ b/src/services/Api.php @@ -43,6 +43,7 @@ public function init(): void if (!isset($this->client)) { $this->client = Craft::createGuzzleClient([ 'base_uri' => Craft::$app->baseApiUrl, + 'connect_timeout' => 15, ]); } } From 51447c845b78eb4fb5d4156632c650c8794afab1 Mon Sep 17 00:00:00 2001 From: brandonkelly Date: Wed, 21 Aug 2024 15:10:23 -0400 Subject: [PATCH 2/2] Release note [ci skip] --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b39b498c84c..1d3696008ee 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ - Fixed a bug where the “Default Values” Table field setting wasn’t escaping column headings. ([#15552](https://github.com/craftcms/cms/issues/15552)) - Fixed a bug where Craft couldn’t be installed with existing project config files, if any plugins specified their schema version via `composer.json`. ([#15559](https://github.com/craftcms/cms/issues/15559)) - Fixed a bug where Money fields’ min, max, and default values weren’t being set to the correct currency. ([#15565](https://github.com/craftcms/cms/issues/15565), [#15566](https://github.com/craftcms/cms/pull/15566)) +- Fixed a bug where PHP-originated Craft Console API requests weren’t timing out if the API was down. ([#15571](https://github.com/craftcms/cms/pull/15571)) ## 4.11.3 - 2024-08-13