Skip to main content

Our API is failing occasionally due to timeout issue. There are two option in HTTP request configuration - connection idle timeout and response timeout. Which one to increase and how one setting is different from other one?

2 个回答
  1. 2022年1月18日 21:19

    Basically, Most of the time response timeout cause the error due to backend call of API using HTTP requester which respond lately due to design and infrastructure, network latency .

     

    If they respond lately, you will get timeout error as MuleSoft has default timeout is 10 seconds.

     

    For clear understanding:

     

    Response timeout:

    Maximum time in milliseconds that the request element blocks the execution of the flow waiting for the HTTP response. If this value is not present, the connector uses the default response timeout from the Mule configuration, which is also 10000

    Connection Ideal timeout:

     

    The number of milliseconds that a connection can remain idle before it is closed. The value of this attribute is only used when persistent connections are enabled.

    FYI:

    https://docs.mulesoft.com/http-connector/1.6/http-documentation