Skip to content

Fix issue where "Spring:Cloud:Config:Timeout" configuration property isn't respected#1208

Merged
TimHess merged 1 commit into
SteeltoeOSS:release/3.2from
gev-firestorm:Fix1178
Oct 25, 2023
Merged

Fix issue where "Spring:Cloud:Config:Timeout" configuration property isn't respected#1208
TimHess merged 1 commit into
SteeltoeOSS:release/3.2from
gev-firestorm:Fix1178

Conversation

@douggish
Copy link
Copy Markdown

Description

The ConfigServerConfigurationProvider's _httpClient field was being initialized using the "default" timeout setting and was not updated with the configured timeout. Fixed by deferring initializing the _httpClient field until after the settings are updated with the configured values.

Fixes #1178

Quality checklist

  • Your code complies with our Coding Style.
  • You've updated unit and/or integration tests for your change, where applicable.
  • You've updated documentation for your change, where applicable.
    If your change affects other repositories, such as Documentation, Samples and/or MainSite, add linked PRs here.
  • There's an open issue for the PR that you are making. If you'd like to propose a new feature or change, please open an issue to discuss the change or find an existing issue.
  • You've added required license files and/or file headers (explaining where the code came from with proper attribution), where code is copied from StackOverflow, a blog, or OSS.

The _httpClient field was being initialized using the "default" timeout
setting and was not updated with the configured timeout. Fixed by
deferring initializing the _httpClient field until after the settings
are updated with the configured values.

Addresses SteeltoeOSS#1178
@douggish
Copy link
Copy Markdown
Author

@dotnet-policy-service agree company="General Electric"

@TimHess
Copy link
Copy Markdown
Member

TimHess commented Oct 24, 2023

/azp run Steeltoe.All

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@TimHess TimHess added this to the 3.2.5 milestone Oct 24, 2023
@TimHess TimHess added Type/bug Something isn't working Component/Configuration Issues related to Configuration providers ReleaseLine/3.x Identified as a feature/fix for the 3.x release line labels Oct 24, 2023
Copy link
Copy Markdown
Member

@TimHess TimHess left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sonarqubecloud
Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@TimHess TimHess merged commit 55211fe into SteeltoeOSS:release/3.2 Oct 25, 2023
@douggish douggish deleted the Fix1178 branch October 25, 2023 19:34
@TimHess TimHess mentioned this pull request Dec 8, 2023
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Component/Configuration Issues related to Configuration providers ReleaseLine/3.x Identified as a feature/fix for the 3.x release line Type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants