grpc-js: disable http proxy with client options
See original GitHub issueIs your feature request related to a problem? Please describe.
When a system level http proxy is set (eg with http_proxy
), and i attempt to connect to a grpc server running on localhost, the client never connects. I don’t think it makes sense for requests to localhost to go through the http proxy.
Describe the solution you’d like
I would like to disable http proxying in the client with a client option, eg { 'grpc.enable_http_proxy': 0 }
Describe alternatives you’ve considered
Using env vars work, eg: no_grpc_proxy=localhost,127.0.0.0/8
, but i don’t want to set global vars. I have built an application that attempts to connect to a localhost grpc server and I don’t want to set global vars that might have side effects with other applications that use grpc.
I am more than happy to send a PR myself, but i’d like to get some feedback first. Thanks!
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Top 5 @grpc/grpc-js Code Examples - Snyk
Learn more about how to use @grpc/grpc-js, based on @grpc/grpc-js code examples created from the most popular ways it is used in public...
Read more >How to disable HTTP proxy features - Windows Server
Describes how to disable specific features of Windows HTTP proxies. ... Settings\DisableProxyAuthenticationSchemes.
Read more >@grpc/grpc-js - npm
Start using @grpc/grpc-js in your project by running `npm i ... Client Interceptors; Connection Keepalives; HTTP Connect support (proxies).
Read more >Basics tutorial | Web - gRPC
Use the gRPC-Web API to write a simple client for your service. ... In this example, we will use the Envoy proxy to...
Read more >Disable the HTTP Proxy in the Browser
Open Internet Explorer. · Select Tools > Internet Options. · Select the Connections tab. · Click LAN Settings. · Clear the Use a...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I have published 1.0.5 with your change.
Thanks, have tested this change in my app it’s working as expected 👍