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

Swift TSocketTransport implementation is missing unix domain socket support

    XMLWordPrintableJSON

Details

    • Bug
    • Status: In Progress
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Swift - Library
    • None

    Description

      TSocketTransport in Objective-C supports initWithPath: for unix domain sockets:
      https://github.com/apache/thrift/blob/f3ec277e7e2c147342831ecec590bc2f71b07761/lib/cocoa/src/transport/TSocketTransport.m#L82

      However since the Objective-C implementation has been removed in 0.13, the Swift version does not implement this:
      https://github.com/apache/thrift/blob/master/lib/swift/Sources/TSocketTransport.swift

      Before this is done I think TCFSocketTransport should be moved to its own file. This would avoid extra #if logic to prevent Linux compiling, and simplify the code.

       

      Attachments

        Issue Links

          Activity

            People

              kinoroy Kino
              kwojniak_box Kevin Wojniak
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

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