stepancheg / grpc-rust

Rust implementation of gRPC
MIT License
1.37k stars 124 forks source link

Support UNIX domain sockets #91

Closed netvl closed 5 years ago

netvl commented 7 years ago

Is it possible to support UNIX domain sockets as a transport for gRPC? For example, grpc-go supports them, while grpc-java uses Netty which can be configured to support UNIX sockets.

bblancha commented 7 years ago

It looks like Stepan is away for some time.

It seems that supporting unix domain sockets should be possible. It will take some changes in rust-http2. I am working on that, but am new to Rust so it may take some time. I will update here If I can get it figured out.

stepancheg commented 7 years ago

I'm sorry, I've just changed an employer and very busy.

Yes, I think UDS would be a good addition. I doubt I will have time in foreseeable future to do it myself, but it someone wishes to implement it, I could help/explain/review.

bblancha commented 7 years ago

Here's the first pass of enabling UDS in rust-http2: https://github.com/stepancheg/rust-http2/pull/15

I'll work on at adapting grpc-rust to those changes in the next few days.

bblancha commented 7 years ago

Once the rust-http2 change is in place, I'll open a PR in this repository using the following branch: https://github.com/bblancha/grpc-rust/tree/unix_socket

stepancheg commented 5 years ago

Published 0.6.0

Thank you!