Uploaded image for project: 'HttpComponents HttpClient'
  1. HttpComponents HttpClient
  2. HTTPCLIENT-1536

HttpClientConnectionOperator should use HttpHost.getAddress if available

    XMLWordPrintableJSON

Details

    Description

      In HttpClientConnectionOperator Instead of:

      final InetAddress[] addresses = this.dnsResolver.resolve(host.getHostName());

      Use:
      InetAddress explicit = target.getAddress();
      final InetAddress[] addresses = explicit!=null ? new InetAddress[]

      {explicit}

      : this.dnsResolver.resolve(host.getHostName());

      e.g. On a host with round-robin dns (mulitple A or AAAA records) I wish to connect to a specific server rather than trying multiple hosts.

      Attachments

        Activity

          People

            Unassigned Unassigned
            pbkwee Peter Bryant
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

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