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

HttpClient: The logic of retry on connect exception is inverted

XMLWordPrintable

    • b05
    • Not verified

        There's a jdk private property that allows to disable retry on connect, but the logic that handles it is inverted, and so retry on connect is disabled by default. Having retry on connect disabled by default may be the right thing to do, but then the name of the property should be change to reflect what it really does (see MultiExchange.java).
        Alternatively - we could retry on ConnectException on the condition that id does not double the connect timeout.

              dfuchs Daniel Fuchs
              dfuchs Daniel Fuchs
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: