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

Give developers' C++ code direct access to socket FDs on server side

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.9
    • 0.9.2
    • C++ - Library
    • None
    • Patch Available

    Description

      Occasionally, developers need to set some socket option that the Thrift maintainers haven't made a getter / setter for yet. Sometimes the lack of a getter / setter is just because we haven't gotten to it, and sometimes it's because we don't want to provide (perhaps because of portability concerns).

      On the client side, developers can just call getSocketFD() and call getsockopt all day long. On the server side, there is no such option. In addition, it makes sense to allow separate access to the "listening" socket versus the "accepted" socket.

      Attachments

        1. socket_callbacks2.patch
          3 kB
          Ben Craig

        Activity

          People

            ben.craig Ben Craig
            ben.craig Ben Craig
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: