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

TNonblockingServer can bind to port 0 (i.e., get an OS-assigned port) but there is no way to get the port number

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Wish
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.9.2
    • 0.9.3
    • C++ - Library
    • None

    Description

      While providing port 0 to the TNonblockingServer (C++ edition) allows the OS to assign any port that is available (this part actually works), there is no API to retrieve the port that was assigned. At least, I wasn't able to find one...

      This is similar to the problem reported on THRIFT-1944.

      Both TSimpleServer and TThreadedServer as of 0.9.2 have this capability.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            nsuke Nobuaki Sukegawa
            hcma Henrique Andrade
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment