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

Read the network address from the listener if available.

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.9.2
    • Fix Version/s: 0.9.3
    • Component/s: Go - Library
    • Labels:
    • Environment:

      Linux Amazon AMI

    • Patch Info:
      Patch Available

      Description

      Often in tests, the listening port of a test server is automatically
      selected by passing the zero port in the host, as in "127.0.0.1:0".
      An example of such behaviour is in the "httptest" package of the
      standard library:

      https://github.com/golang/go/blob/master/src/net/http/httptest/server.go#L65

      As such, it is necessary to read from the listener itself to retrieve
      the actually listening port, as in

      https://github.com/golang/go/blob/master/src/net/http/httptest/server.go#L107

      The pull request that fixes this is https://github.com/apache/thrift/pull/310

        Attachments

          Activity

            People

            • Assignee:
              jensg Jens Geyer
              Reporter:
              awaw awaw fumin
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 24h
                24h
                Remaining:
                Remaining Estimate - 24h
                24h
                Logged:
                Time Spent - Not Specified
                Not Specified