[prev in list] [next in list] [prev in thread] [next in thread] 

List:       esb-java-dev
Subject:    Re: [Dev] Connection Timeout issue
From:       Thivya Mahenthirarasa <thivya () wso2 ! com>
Date:       2020-01-21 9:59:35
Message-ID: CALo7owWafqDWOQEXmGtFUK4yEdBLoC0EBZTOw--Ss7XqFqRvfQ () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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 <
priyadarshinipunjabi@gmail.com> 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
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>


-- 
*M. Thivya* | Software Engineer | WSO2 Inc. <http://wso2.com/>
(M)+94 766461966 | (E) thivya@wso2.com
Blog: https://medium.com/@thivyamahen.1992
LinkedIn: https://www.linkedin.com/in/thivya-mahen/

[Attachment #5 (text/html)]

<div dir="ltr"><div dir="ltr"><div>Hi Priya,</div><div><br></div><div>So I&#39;m \
seeing you are trying to set time out to lower value about 9 \
seconds.</div><div><br></div><div>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.</div><div>  </div><div>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.</div><div>Edit synapse.properties file and add the following parameter and \
add a small value.</div><div><br></div><div><b>synapse.timeout_handler_interval  \
</b></div><div><br></div><div>Important: Specifying a lower value for this parameter \
might results in a higher overhead on the \
system.</div><div><br></div><div><br></div><div>Thanks,</div><div>Thivya</div></div></div><br><div \
class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Nov 7, 2019 at 3:37 PM \
Priyadarshini Punjabi &lt;<a \
href="mailto:priyadarshinipunjabi@gmail.com">priyadarshinipunjabi@gmail.com</a>&gt; \
wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hii \
team,<div><br></div><div>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.</div><div>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.</div><div>Please tell how to achieve.   Please \
revert asap.</div><div><br></div><div>Many  \
thanks,</div><div>Priyadarshini</div></div> \
_______________________________________________<br> Dev mailing list<br>
<a href="mailto:Dev@wso2.org" target="_blank">Dev@wso2.org</a><br>
<a href="http://wso2.org/cgi-bin/mailman/listinfo/dev" rel="noreferrer" \
target="_blank">http://wso2.org/cgi-bin/mailman/listinfo/dev</a><br> \
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" \
class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div \
dir="ltr"><div><div><div><div><div><span style="color:rgb(136,136,136)"><b>M. \
Thivya</b>  | Software Engineer |  </span><a href="http://wso2.com/" \
style="color:rgb(17,85,204)" target="_blank">WSO2 Inc.</a><div \
style="color:rgb(136,136,136)">(M)+94 766461966 | (E) <a \
href="mailto:thivya@wso2.com" style="color:rgb(17,85,204)" target="_blank"><font \
color="#1155cc">thivya@wso2.com</font></a></div><div \
style="color:rgb(136,136,136)">Blog:  <a href="https://medium.com/@thivyamahen.1992" \
style="color:rgb(17,85,204)" target="_blank"><font \
color="#1155cc">https://medium.com/@thivyamahen.1992</font></a></div><div \
style="color:rgb(136,136,136)">LinkedIn:  <a \
href="https://www.linkedin.com/in/thivya-mahen/" style="color:rgb(17,85,204)" \
target="_blank">https://www.linkedin.com/in/thivya-mahen/</a></div><div \
style="color:rgb(136,136,136)"><font color="#1155cc"><img \
src="http://c.content.wso2.com/signatures/wso2-mail-signature-general.png"></font></div></div></div></div></div></div></div></div></div></div></div></div>




_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic