Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 697 Bytes

request-timeout.md

File metadata and controls

23 lines (18 loc) · 697 Bytes

Increasing the Request Timeout

In case we have to deal with a slow upstream system, the various timeout options of the request action will help. Here we allow a five second overall timeout for the request:

<flow>
  <request>
  {
    "url": "https://httpbin.org/delay/4",
    "options": {
      "timeout": 5
    }
  }
  </request>
</flow>

Without that timeout option the request will be aborted after three seconds – FLAT's default timeout setting.

See also