issues with setting Timeouts in Restlet

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

issues with setting Timeouts in Restlet

santosh pathak
hi,In one of my project,I am new to restlet.
I am using 1.1.5 version and using it for consuming a REST web service.

I tried creating a client and tried setting the socket and connect Timeout in the context

Client client = new Client(Protocol.HTTPclient.getContext().getParameters().add("readTimeout","some value");
client.getContext().getParameters().add("socketTimeout","some value"));

None of the values that I set in context is recognized by restlet , I still see my thread waiting for response from back-end for endless time.

What are the right context paramteres, that are needed for connection timeout and socket timeout? Appreciate help..

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=3091082
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: issues with setting Timeouts in Restlet

Jerome Louvel-3
Hi Santhos,

Which version of Restlet Framework are you using? 1.1.5 is a very old one.
Also, you need to let us know which HTTP client you are using as the parameters vary depending on the connector (Apache HTTP Client, Jetty or the internal/default one)




On Mon, Nov 10, 2014 at 12:43 PM, santosh pathak <[hidden email]> wrote:
hi,In one of my project,I am new to restlet.
I am using 1.1.5 version and using it for consuming a REST web service.

I tried creating a client and tried setting the socket and connect Timeout in the context

Client client = new Client(Protocol.HTTPclient.getContext().getParameters().add("readTimeout","some value");
client.getContext().getParameters().add("socketTimeout","some value"));

None of the values that I set in context is recognized by restlet , I still see my thread waiting for response from back-end for endless time.

What are the right context paramteres, that are needed for connection timeout and socket timeout? Appreciate help..

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

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: issues with setting Timeouts in Restlet

Arjun
This post has NOT been accepted by the mailing list yet.
This post was updated on .
Hi All,
I'm also facing issue with setting read timeout for the client using Restlet 2.0.10.
when I post to a service, occasionally I get the error: Internal Connector Error (1002) - The calling thread timed out while waiting for a response to unblock it .
I want to set the read timeout to a sufficient bigger value.
I tried different ways but none of them seem to have effect on the timeout.
Does anyone know how to set the read timeout effectively using Restlet 2.0.10?
I would greatly appreciate any help. Thanks.

Best Regards,
Arjun



Loading...