diff --git a/.release-please-manifest.json b/.release-please-manifest.json index f81bf99..8305d4a 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.31.0" + ".": "0.31.1" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 84f067e..a28db50 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.31.1 (2026-05-08) + +Full Changelog: [v0.31.0...v0.31.1](https://github.com/Increase/increase-csharp/compare/v0.31.0...v0.31.1) + +### Bug Fixes + +* **internal:** disable default HttpClient timeout as we have our own ([90042e2](https://github.com/Increase/increase-csharp/commit/90042e2d169068aec15a1dd8c1ec98cb35d88849)) + ## 0.31.0 (2026-05-08) Full Changelog: [v0.30.0...v0.31.0](https://github.com/Increase/increase-csharp/compare/v0.30.0...v0.31.0) diff --git a/src/Increase.Api/Core/ClientOptions.cs b/src/Increase.Api/Core/ClientOptions.cs index ebbfaef..5bb84b2 100644 --- a/src/Increase.Api/Core/ClientOptions.cs +++ b/src/Increase.Api/Core/ClientOptions.cs @@ -21,9 +21,16 @@ public record struct ClientOptions() /// /// The HTTP client to use for making requests in the SDK. + /// + /// Note: The HttpClient has a built-in timeout, which defaults to 100 seconds. + /// When passing a custom HttpClient, this timeout may conflict with the SDK's + /// own timeout handler and cause premature cancellation. /// public HttpClient HttpClient { get; set; } = - new(new HttpClientHandler() { AutomaticDecompression = DecompressionMethods.Available }); + new(new HttpClientHandler() { AutomaticDecompression = DecompressionMethods.Available }) + { + Timeout = global::System.Threading.Timeout.InfiniteTimeSpan, + }; Lazy _baseUrl = new(() => Environment.GetEnvironmentVariable("INCREASE_BASE_URL") ?? EnvironmentUrl.Production diff --git a/src/Increase.Api/Increase.Api.csproj b/src/Increase.Api/Increase.Api.csproj index 7c9210a..8edbf37 100644 --- a/src/Increase.Api/Increase.Api.csproj +++ b/src/Increase.Api/Increase.Api.csproj @@ -3,7 +3,7 @@ Increase C# Increase.Api - 0.31.0 + 0.31.1 The official .NET library for the Increase API. Library README.md