Commit 9324ab2
committed
Apply Timeout to HttpClient instances created with authentication (#1277)
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.cs1 parent b3f4348 commit 9324ab2
1 file changed
Lines changed: 5 additions & 3 deletions
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
| 163 | + | |
163 | 164 | | |
164 | 165 | | |
165 | | - | |
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
192 | | - | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
193 | 195 | | |
194 | 196 | | |
195 | 197 | | |
| |||
1024 | 1026 | | |
1025 | 1027 | | |
1026 | 1028 | | |
1027 | | - | |
| 1029 | + | |
1028 | 1030 | | |
1029 | 1031 | | |
1030 | 1032 | | |
| |||
0 commit comments