Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8295777

java/net/httpclient/ConnectExceptionTest.java should not rely on system resolver

XMLWordPrintable

    • b21

        The test verifies that the HttpClient throws a ConnectException in response to DNS resolution failures. If the DNS server is unresponsive, the test may take a long time.
        We can configure Java to use a non-existent hosts file for name resolution; this way the negative DNS responses will always be available immediately.

              djelinski Daniel Jelinski
              djelinski Daniel Jelinski
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: