Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-17624

RestTemplate can't set timeout pre request

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Works as Designed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Web
    • Labels:
    • Last commented by a User:
      true

      Description

      Use RestTemplate send request to difference url, we want different request have different SocketTimeout parameter. 

      Currently RestTemplate doesn't have any interface costum timeout for pre request. 

      The HttpComponentsClientHttpRequestFactory can custum RequestConfig but when use with RestTemplate we have no chance to set timeout parameter.

        Attachments

          Activity

            People

            Assignee:
            bclozel Brian Clozel
            Reporter:
            ailin zhou ailin zhou
            Last updater:
            Spring Issues Spring Issues
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              3 years, 23 weeks, 6 days ago