Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-2597

Allow prevention of automatic http request retries

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Done
    • Major
    • 4.5.8.Final
    • 4.5.3.Final, 3.12.0.Final
    • None
    • None
    • Compatibility/Configuration, User Experience

    Description

      Hello,

      We do use the ResteasyClient and the ResteasyClientBuilder to build a REST Client.

      Unfortunately, the built client's underlying HttpClient automatically retries requests to the given URL and there is no way to let the client builder build a client that does not behave like that.
      This is a problem, if there are actual money wise transaction involved after firing such a request, as the receiving end could potentially then execute those requests multiple times, even though based on BL of the client, this is not meant to be like that.

      If possible, can you make use and somehow expose the "disableAutomaticRetries" on the Apache HttpClientBuilder, that you do use in the ResteasyClientBuilder, so automatic retries can be disabled by people who want to avoid silent http request retries?

      See https://github.com/resteasy/Resteasy/blob/9fa29a75168da5671885eb9c16a1e90a558619ec/resteasy-client/src/main/java/org/jboss/resteasy/client/jaxrs/engines/ClientHttpEngineBuilder43.java#L200

      where the client is being built.

      Attachments

        Issue Links

          Activity

            People

              rsearls r searls
              jwedding Jan Wedding (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: