Details
-
New Feature
-
Status: Closed
-
Major
-
Resolution: Resolved
-
0.13.0
-
None
-
None
Description
The rust crate for thrift right now has the ability to create a server but only over a TCP socket.
pub fn listen<A: ToSocketAddrs>(&mut self, listen_address: A) -> thrift::Result<()>
The API requires the trait ToSocketAddrs to be implemented which is not possible for a Unix Domain Socket.
Other libraries, for example, python has an option to serve over unix sockets. eg
TSocket.TServerSocket(unix_socket='/tmp/service.sock')
It would be really nice to be able to get a similar API in rust as well unless there is a way to do it already. Please let me know if it already exists.
Attachments
Issue Links
- links to