Skip to content

fix: avoid curl_getenv for unix:// too#3540

Merged
morrisonlevi merged 1 commit intomasterfrom
levi/curl_getenv
Dec 19, 2025
Merged

fix: avoid curl_getenv for unix:// too#3540
morrisonlevi merged 1 commit intomasterfrom
levi/curl_getenv

Conversation

@morrisonlevi
Copy link
Collaborator

@morrisonlevi morrisonlevi commented Dec 19, 2025

Description

In #3528 which went out in v1.15.0, we avoided some calls to curl_getenv by adjusting proxy environment variables. However, there was a case it didn't consider: using Unix Domain Sockets (UDS) to talk to the agent. For UDS, we rewrote the URL to be HTTP after we set the proxy config, so when a customer uses UDS, it would still check for proxy envs. Now UDS is handled before we do the proxy config.

Like the previous PR, I verified this with a LD_PRELOAD wrapper for getenv and looking at the order of the calls. On 1.15.x, a call to getenv for no_proxy was made when using UDS, and with this branch, it's gone.

Reviewer checklist

  • Test coverage seems ok.
  • Appropriate labels assigned.

@morrisonlevi morrisonlevi requested a review from a team as a code owner December 19, 2025 17:03
@morrisonlevi morrisonlevi merged commit ba46f8b into master Dec 19, 2025
1993 of 2008 checks passed
@morrisonlevi morrisonlevi deleted the levi/curl_getenv branch December 19, 2025 20:16
@github-actions github-actions bot added this to the 1.16.0 milestone Dec 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants