Serving Ontop of Abstract Transport
Is your feature request related to a problem? Please describe.
I need to organize a gRPC communication among services on transport agnostic basis
Describe the solution you'd like
I'd like to be able to serve an instance (server or client) based on regular Duplex stream without explicit ports binding (something similar to golang Listener or Connection injection)
Describe alternatives you've considered
As I understand the current implementation tightly depends on internally created HTT2 server instance. So if the desired behavior Is not an. option I can see the only way to reimplement some simpler analog just taking advantage solely of Potobuf it self only.
I'm not sure maybe this is not obvious from implementation and there's a chance just to use some lower level classes from the library to achieve this? Or is there any minimal changes I can change/extend the codebase locally to get the behavior?
Please advice the most relevant solution in my case.
Thank you
On the server side, this has been implemented in version 1.11.x with the Server#createConnectionInjector API. The full spec describes how it works, but in short, this is an API you can call instead of binding a port, and it provides an object that you can pass arbitrary Duplex objects to, which will be treated as incoming TCP connections.