Hi Priya,

So I'm seeing you are trying to set time out to lower value about 9 seconds.

Sometimes you may notice setting the timeout to be very low value and
configure back end to always return in after time out value, you still get
from time to time the response from the back end service even though you
should always get the timeout. The reason for that is according to current
implementation timeout handler runs in every 15 seconds. Which means
through there is endpoints timeouts, the TimeoutHandler executes every 15
seconds and real timeout happens after that.

As a solution to this, Since this is because timeout handler runs every
15sec thus roughly 20sec would take the process to take over to fault
handlers if its timeout. Since you configured your endpoint with 9sec
timeout, then you can capture error more closer if we quicker the handler
iteration.
Edit synapse.properties file and add the following parameter and add a
small value.

*synapse.timeout_handler_interval *

Important: Specifying a lower value for this parameter might results in a
higher overhead on the system.


Thanks,
Thivya

On Thu, Nov 7, 2019 at 3:37 PM Priyadarshini Punjabi <
[email protected]> wrote:

> Hii team,
>
> I want that if my target service  doesnt give response within 10 seconds
> the api manager should give response connection timeout error or
> execute fault sequence.
> so i have done the following settings in api manger screen shot attached.
> But even the api manager wits for response and the response comes in 12 or
> 13 seconds.
> Please tell how to achieve.  Please revert asap.
>
> Many thanks,
> Priyadarshini
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>


-- 
*M. Thivya* | Software Engineer | WSO2 Inc. <http://wso2.com/>
(M)+94 766461966 | (E) [email protected]
Blog: https://medium.com/@thivyamahen.1992
LinkedIn: https://www.linkedin.com/in/thivya-mahen/
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to