[ 
https://issues.apache.org/jira/browse/AIRAVATA-1326?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14051739#comment-14051739
 ] 

Supun Chathuranga Nakandala commented on AIRAVATA-1326:
-------------------------------------------------------

When using thrift php client library it is important to set the timeout values 
for both sending and receiving. If they are not set thrift will use the default 
values which are 100ms for sending and 750ms for receiving. If the latency is 
high thrift will give TSocket timeout exceptions.

Example usage:
$socket = new TSocket($host, $port);
$socket->setSendTimeout(60000);
$socket->setRecvTimeout(60000);

> TSocket timeout exception when connecting to Airavata API from php client
> -------------------------------------------------------------------------
>
>                 Key: AIRAVATA-1326
>                 URL: https://issues.apache.org/jira/browse/AIRAVATA-1326
>             Project: Airavata
>          Issue Type: Bug
>            Reporter: Supun Chathuranga Nakandala
>            Priority: Critical
>
> When running the php cli samples, when the latency is high it throws a thrift 
> TSocket timeout exception.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to