diff --git a/.github/actions/build-docs/action.yml b/.github/actions/build-docs/action.yml index e413cf5f..29497946 100644 --- a/.github/actions/build-docs/action.yml +++ b/.github/actions/build-docs/action.yml @@ -17,4 +17,4 @@ runs: --ignore-tags psalm-return \ --visibility public \ --defaultpackagename "LaunchDarkly" \ - --title "LaunchDarkly PHP SDK 6.5.1" # x-release-please-version + --title "LaunchDarkly PHP SDK 6.5.2" # x-release-please-version diff --git a/.release-please-manifest.json b/.release-please-manifest.json index e1cfad1c..23dcfcf2 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "6.5.1" + ".": "6.5.2" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 854267ef..fd99d133 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,13 @@ All notable changes to the LaunchDarkly PHP SDK will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org). +## [6.5.2](https://github.com/launchdarkly/php-server-sdk/compare/6.5.1...6.5.2) (2025-03-25) + + +### Bug Fixes + +* Honor `timeout` configuration for CurlEventPublisher ([#216](https://github.com/launchdarkly/php-server-sdk/issues/216)) ([1c969be](https://github.com/launchdarkly/php-server-sdk/commit/1c969be38e01e80dc29e202b1a46373dfeb35196)) + ## [6.5.1](https://github.com/launchdarkly/php-server-sdk/compare/6.5.0...6.5.1) (2025-03-17) diff --git a/src/LaunchDarkly/Impl/Integrations/CurlEventPublisher.php b/src/LaunchDarkly/Impl/Integrations/CurlEventPublisher.php index 0ea2961e..c3d530ad 100644 --- a/src/LaunchDarkly/Impl/Integrations/CurlEventPublisher.php +++ b/src/LaunchDarkly/Impl/Integrations/CurlEventPublisher.php @@ -22,6 +22,7 @@ class CurlEventPublisher implements EventPublisher private bool $_ssl; private string $_curl = '/usr/bin/env curl'; private int $_connectTimeout; + private int $_timeout; private bool $_isWindows; /** @var array */ @@ -51,6 +52,7 @@ public function __construct(string $sdkKey, array $options = []) $this->_eventHeaders = Util::eventHeaders($sdkKey, $options); $this->_connectTimeout = $options['connect_timeout']; + $this->_timeout = $options['timeout']; $this->_isWindows = PHP_OS_FAMILY == 'Windows'; } @@ -81,6 +83,7 @@ private function createCurlArgs(string $payload): string $scheme = $this->_ssl ? "https://" : "http://"; $args = " -X POST"; $args.= " --connect-timeout " . $this->_connectTimeout; + $args.= " --max-time " . $this->_timeout; foreach ($this->_eventHeaders as $key => $value) { if ($key == 'Authorization') { diff --git a/src/LaunchDarkly/LDClient.php b/src/LaunchDarkly/LDClient.php index e8271b99..f32ecafa 100644 --- a/src/LaunchDarkly/LDClient.php +++ b/src/LaunchDarkly/LDClient.php @@ -39,7 +39,7 @@ class LDClient * The current SDK version. * @var string */ - const VERSION = '6.5.1'; // x-release-please-version + const VERSION = '6.5.2'; // x-release-please-version protected string $_sdkKey; protected string $_baseUri;