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

Unavailable DNS servers causes proxy to wait for > 100 seconds

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.1.7
    • core-libs
    • x86
    • windows_nt



      Name: dbT83986 Date: 03/11/99


      Using the following to test URLS
        public static void main(String[] args)
        {
          try{
          System.getProperties().put("proxySet", "true");
          System.getProperties().put("proxyHost", "128.1.200.1");
          System.getProperties().put("proxyPort", "8080");
          System.getProperties().put( "httpsProxySet", "true" );
          System.getProperties().put( "https.proxyHost", "128.1.200.1");
          System.getProperties().put( "https.proxyPort", "8080" );
          URL u = new URL("http://www.result.co.uk/");
          long t = System.currentTimeMillis();
          URLConnection uc = u.openConnection();
          InputStream is = uc.getInputStream();
          long t2 = ((System.currentTimeMillis() - t) / 1000);
          System.out.println("Delay = " + t2 + " secs.");
          }catch (Exception ex) { ex.printStackTrace(); }
        }

      This works correctly when I do not have any DNS entries in my TCP networking properties. However I also use the same
      computer for dial-up networking, for use in another office, and dialling onto a customer.
      This means that I have three DNS entries that are often not accessable. I leave these three in the DNS list and all my
      other applications (non java) work fine.
      As soon as one of these entries is included in the list then the uc.getInputStream() call takes > 100 secs to return.
      Because it works differently than other applications, our customers (as I had) will possibly have DNS entries that cause
      a problem for our java app but not for everything else. This will then be a difficult problem for use to identify and correct
      because we won't know (or want to know) their network structure.
      (Review ID: 54717)
      ======================================================================

            gellisonsunw Gary Ellison (Inactive)
            dblairsunw Dave Blair (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: