If you need to stick with version 2.1, I recommend using the Apache HTTP
Client extension (see "socketTimeout" parameter):
http://restlet.com/technical-resources/restlet-framework/javadocs/2.1/jee/ext/org/restlet/ext/httpclient/HttpClientHelper.html

or the Net HTTP Client extension (see "readTimeout" parameter):
http://restlet.com/technical-resources/restlet-framework/javadocs/2.1/jee/ext/org/restlet/ext/net/HttpClientHelper.html

Jerome


On Tue, Mar 10, 2015 at 2:13 PM, Chirayu Desai <chir...@purpledocs.com>
wrote:

> No the request processing at server may or maynot take more than 1 minute,
> which means that the server may not necessaryly respond before timeout.
>
> On Wed, Mar 11, 2015 at 2:37 AM, Jerome Louvel-3 [via Restlet Discuss] 
> <[hidden
> email] <http:///user/SendEmail.jtp?type=node&node=7579349&i=0>> wrote:
>
>> Hello Chirayu,
>>
>> Is your server supposed to answer before the timeout observed?
>> Also, are you be able to upgrade to version 2.3.1 ("stable")?
>>
>> Best regards,
>> Jerome
>>
>>
>> On Tue, Mar 10, 2015 at 1:04 PM, Chirayu Desai <[hidden email]
>> <http:///user/SendEmail.jtp?type=node&node=7579348&i=0>> wrote:
>>
>>> I am using a restlet 2.1 client sever based architecture, my client
>>> times out
>>> within 1 minute after sending the request. and I get the following
>>> exception
>>> :
>>> Internal Connector Error (1002) - The calling thread timed out while
>>> waiting
>>> for a response to unblock it.
>>>         at
>>> org.restlet.resource.ClientResource$1.invoke(ClientResource.java:1663)
>>>         at com.sun.proxy.$Proxy17.getTaskList(Unknown Source)....
>>>
>>> My code is as below :
>>>
>>> import org.restlet.resource.ClientResource;
>>>
>>> *ClientResource cr = new ClientResource(uri);
>>> MyResource resource= cr.wrap(MyResource .class);
>>>                                 updateStatus =
>>> resource.updateData(Parameter);*
>>>
>>> how should I configure my client resource to avoid timeout ?
>>>
>>>
>>>
>>> --
>>> View this message in context:
>>> http://restlet-discuss.1400322.n2.nabble.com/Restelt-Client-Internal-Connector-Error-1002-tp7579347.html
>>> Sent from the Restlet Discuss mailing list archive at Nabble.com.
>>>
>>> ------------------------------------------------------
>>>
>>> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=3104395
>>>
>>
>>
>>
>> ------------------------------
>>  If you reply to this email, your message will be added to the
>> discussion below:
>>
>> http://restlet-discuss.1400322.n2.nabble.com/Restelt-Client-Internal-Connector-Error-1002-tp7579347p7579348.html
>>  To unsubscribe from Restelt Client Internal Connector Error (1002), click
>> here.
>> NAML
>> <http://restlet-discuss.1400322.n2.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>>
>
>
>
> --
> -Regards,
> -Chirayu Desai
>
> ------------------------------
> View this message in context: Re: Restelt Client Internal Connector Error
> (1002)
> <http://restlet-discuss.1400322.n2.nabble.com/Restelt-Client-Internal-Connector-Error-1002-tp7579347p7579349.html>
>
> Sent from the Restlet Discuss mailing list archive
> <http://restlet-discuss.1400322.n2.nabble.com/> at Nabble.com.
>

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=3104439

Reply via email to