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

Provide Java-pure way to disable InetAddress cache

XMLWordPrintable

    • beta
    • generic
    • generic
    • Verified



      Name: krT82822 Date: 11/02/99


      java version "1.2.2"
      Classic VM (build JDK-1.2.2-W, native threads, symcjit)

      It would be desirable to provide a real fix for bug
      http://developer.java.sun.com/developer/bugParade/bugs/4065037.html in JDK 1.3.
      Although this bug is marked closed, it is not really fixed. There are two
      problems:

      1. The name of the property that is mentioned in the bug closure comment is
      wrong. The correct name is sun.net.inetaddr.ttl.

      2. Using a Sun-specific property name is ugly and is not 100% Java pure.

      Please provide a documented property or API call to set a limit on the
      InetAddress cache. Otherwise, there is no way to recover from transient DNS
      failure. This is a serious issue for robust systems.
      (Review ID: 97335)
      ======================================================================

            ywangsunw Yingxian Wang (Inactive)
            kryansunw Kevin Ryan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: