Skip to content

Apply Timeout to HttpClient instances created with authentication#1277

Merged
claudiamurialdo merged 1 commit into
masterfrom
fix/httpclient-timeout-with-auth
May 7, 2026
Merged

Apply Timeout to HttpClient instances created with authentication#1277
claudiamurialdo merged 1 commit into
masterfrom
fix/httpclient-timeout-with-auth

Conversation

@claudiamurialdo
Copy link
Copy Markdown
Collaborator

@claudiamurialdo claudiamurialdo commented May 6, 2026

When AddAuthentication() is called, GxHttpClient passes a non-empty authCollection to GetHttpClientInstance, so CacheableInstance returns false and the non-cached branch builds a fresh HttpClient. That branch never set client.Timeout, leaving the default 100s and silently ignoring the user-configured Timeout property.
Issue:208609

When AddAuthentication() is called, GxHttpClient passes a non-empty
authCollection to GetHttpClientInstance, so CacheableInstance returns
false and the non-cached branch builds a fresh HttpClient. That branch
never set client.Timeout, leaving the default 100s and silently
ignoring the user-configured Timeout property.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@claudiamurialdo claudiamurialdo temporarily deployed to external-storage-tests May 6, 2026 20:51 — with GitHub Actions Inactive
@claudiamurialdo claudiamurialdo temporarily deployed to kafka-integration-tests May 6, 2026 20:51 — with GitHub Actions Inactive
@genexusbot
Copy link
Copy Markdown
Collaborator

Cherry pick to beta success

@claudiamurialdo claudiamurialdo requested a review from AlejandroP May 6, 2026 21:27
@claudiamurialdo claudiamurialdo merged commit bb1a5c6 into master May 7, 2026
10 checks passed
@claudiamurialdo claudiamurialdo deleted the fix/httpclient-timeout-with-auth branch May 7, 2026 21:50
claudiamurialdo added a commit that referenced this pull request May 7, 2026
)

When AddAuthentication() is called, GxHttpClient passes a non-empty
authCollection to GetHttpClientInstance, so CacheableInstance returns
false and the non-cached branch builds a fresh HttpClient. That branch
never set client.Timeout, leaving the default 100s and silently
ignoring the user-configured Timeout property.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
(cherry picked from commit bb1a5c6)

# Conflicts:
#	dotnet/src/dotnetframework/GxClasses/Domain/GxHttpClient.cs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants