-
Notifications
You must be signed in to change notification settings - Fork 10.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Treat an empty http_proxy
mean "Don't use proxy" and skip parsing it
#21632
Conversation
@@ -47,6 +47,7 @@ namespace { | |||
*/ | |||
char* GetHttpProxyServer(char** user_cred) { | |||
GPR_ASSERT(user_cred != nullptr); | |||
grpc_uri* uri = nullptr; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To have new goto
not cross the initialization.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me. I've triggered the tests to run. I'll let Yash do the second review and merge when ready.
EasyCLA has not passed yet. @ikedam have you signed the cla? |
I signed it. |
I believe the above comment will proceed the check according to FAQ ( https://identity.linuxfoundation.org/projects/cncf ). |
Hmm... the status doesn’t seem changed from “Expected — Waiting for status to be reported”. I’ve already singed the CLA in #21570 . |
Closing and reopening the PR did the trick |
Thanks! |
Replaces #21570
An empty value for
http_proxy
results error messages like this, as described in #17631 :You can see this by simply running
I want to suppress this error as:
http_proxy
with following docker-compose.yaml to have it work on environments both with proxies and without proxies:grpc_proxy
can be useful as a way to have grpc not to usehttp_proxy
This change only suppress the error message and doesn't change the actual communication behavior.
@nicolasnoble