Comments (5)
All I have to do to make it work is put a dummy ":kludge" suffix on the address, and strip it out in my TransportAuthenticator.Dial. But that really shouldn't be necessary ;)
from grpc-go.
This is not sufficient because it does not work in the case when there is no TransportAuthenticator (i.e., plain TCP). Plus, how does the client lib differentiate a malformed host:port address (e.g. a user passed an IP addr and forgot setting the port) and real unix socket domain name if we allow users pass an arbitrary string. My idea is to make things explicit. For example, if users want to use UDS, they need to specify the protocol explicitly when creating the transport. This approach is also scaling when we want to support more transport protocols.
from grpc-go.
Oh, absolutely. I am abusing the TransportAuthenticator point to hook up a custom dialer; proper custom dialer support would definitely be better.
Oh and just to be clear, just passing "network, addr string" to net.Dial would cover the unix domain socket part, but still leave out all the things that are truly custom transports, e.g. reliable stream transports over UDP.
from grpc-go.
Agree, those kind of transports (e.g., QUIC, RDMA, etc.) need the native support from the underlying library (e.g., Go net package).
from grpc-go.
closed via #169
from grpc-go.
Related Issues (20)
- Requests go through after about 1000s (16-17 minutes) HOT 11
- NewClient functions behaviour is incompatible with secure forward-proxies HOT 7
- How to give grpc connection Creating a Listener HOT 2
- server.ServeHTTP Experimental Status HOT 10
- Dependency on "testing" from "google.golang.org/grpc/experimental/stats" HOT 6
- encoding.GetCodec(proto.Name) broke in 1.66.0 HOT 7
- Create tests for two potential cardinality violation bugs HOT 1
- Backport #7571 to 1.66 once merged HOT 2
- Why is Metadata still being used instead of Attributes in clientconn.go? HOT 3
- Feature Request: Add Support for Generating Full Method Names List for Service-Level gRPC Interceptors
- xds: v1.66.0 regression in `xds.BootstrapContentsForTesting` HOT 11
- mem package & bufferPoolingThreshold HOT 3
- Generic Streams from protoc-gen-go-grpc are not detected by mock tools HOT 4
- Allow generated handlers to check the correct errors are returned at compile time HOT 1
- Flaky Test: xds/TestUnmarshalListener_WithUpdateValidatorFunc HOT 2
- gRPC server rarely returns UNAVAILABLE on seemingly successful requests HOT 13
- Flaky test: Test/ClientCloseReturnsEarlyWhenGoAwayWriteHangs HOT 4
- Where are the v1.66.1 release notes? HOT 3
- Uptick of FLOW_CONTROL_ERROR errors in CI after updating to 1.66.0 HOT 3
- google.golang.org/grpc v1.66.1 is missing a retraction HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grpc-go.