Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-5283

Ability to listen over unix socket in thrift Rust crate

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Resolved
    • 0.13.0
    • None
    • Rust - Library
    • 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

          Activity

            People

              Unassigned Unassigned
              prateeknischal Prateek Kumar Nischal
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h 10m
                  2h 10m