Skip to content

Configurable http timeout and http response header timeout for azurebs - #183

Merged
jochenehret merged 12 commits into
mainfrom
azure_http_timeouts_2
Sep 16, 2026
Merged

jochenehret merged 12 commits into
mainfrom
azure_http_timeouts_2

Conversation

@jochenehret

@jochenehret jochenehret commented Sep 9, 2026

Copy link
Copy Markdown
Contributor
  • copies http transport settings from azure-sdk-for-go (runtime/transport_default_http_client.go)
  • integration tests ensures that a short timeout is respected

Comment thread azurebs/client/storage_client.go Outdated
}

// preserve the default transport settings from the azure-sdk-for-go runtime package
transport := http.DefaultTransport.(*http.Transport).Clone()

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The transport is based on http.DefaultTransport instead of the default transport provided by the Azure SDK which has a tuned configuration (TLS, timeouts, connection pool config).

See azcore/runtime/transport_default_http_client.go.

@github-project-automation github-project-automation Bot moved this from Inbox to Waiting for Changes | Open for Contribution in Foundational Infrastructure Working Group Sep 14, 2026

@stephanme stephanme left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Would be nice to detect upstream changes of the default azcore transport configuration.
Didi not find a nice way to do it. Proposals:

  • hash the source code of runtime/transport_default_http_client.go (may lead to false positives)
  • use AST to detect transport field changes of runtime/transport_default_http_client.go and our copy

azure sdk updates are consumed fully automatic if ITs succeed. We would not notice and changes in azcore transport configuration.

Comment thread azurebs/integration/assertions.go
@jochenehret

Copy link
Copy Markdown
Contributor Author

Added test to detect changes in runtime/transport_default_http_client.go (compare hashes).

@stephanme stephanme left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

One final thing: the azure readme should list the new timeout parameters

@github-project-automation github-project-automation Bot moved this from Waiting for Changes | Open for Contribution to Pending Merge | Prioritized in Foundational Infrastructure Working Group Sep 16, 2026
@jochenehret
jochenehret merged commit 4a9e682 into main Sep 16, 2026
19 checks passed
@github-project-automation github-project-automation Bot moved this from Pending Merge | Prioritized to Done in Foundational Infrastructure Working Group Sep 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

2 participants