ClientResource response timeout

5 messages Options
Embed this post
Permalink
ian.bine

ClientResource response timeout

Reply Threaded More More options
Print post
Permalink
Hi

I am trying to set a response timeout for a client resource. In other words, I want to know how I can get my client resource to wait for a specific amount of time until giving up a request.

I already read on another topic how to set the connect timeout, but now I'd like to know how I can set a response timeout.

Thanks !
Ian Beauregard
ian.bine

Re: ClientResource response timeout

Reply Threaded More More options
Print post
Permalink
And I'm using Restlet 2.0 by the way.

ian.bine wrote:
Hi

I am trying to set a response timeout for a client resource. In other words, I want to know how I can get my client resource to wait for a specific amount of time until giving up a request.

I already read on another topic how to set the connect timeout, but now I'd like to know how I can set a response timeout.

Thanks !
Ian Beauregard
jlouvel

RE: ClientResource response timeout

Reply Threaded More More options
Print post
Permalink
Hi Ian,

Currently, you can only set this timeout on the HTTP connector via
Client#setConnectTimeout(). The value of the property will therefore be
shared by all calls going through it.

Does this approach work for you?

Best regards,
Jerome Louvel
--
Restlet ~ Founder and Lead developer ~ http://www.restlet.org
Noelios Technologies ~ Co-founder ~ http://www.noelios.com



-----Message d'origine-----
De : ian.bine [mailto:[hidden email]]
Envoyé : mardi 3 novembre 2009 03:40
À : [hidden email]
Objet : Re: ClientResource response timeout

And I'm using Restlet 2.0 by the way.


ian.bine wrote:

>
> Hi
>
> I am trying to set a response timeout for a client resource. In other
> words, I want to know how I can get my client resource to wait for a
> specific amount of time until giving up a request.
>
> I already read on another topic how to set the connect timeout, but now
> I'd like to know how I can set a response timeout.
>
> Thanks !
> Ian Beauregard
>

--
View this message in context:
http://n2.nabble.com/ClientResource-response-timeout-tp3936182p3936220.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.

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

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

RE: ClientResource response timeout

Reply Threaded More More options
Print post
Permalink
Isn't there a difference between a connect timeout and a response timeout ?

Connect timeout : time the client is willing to wait until a connection with the server
Response timeout : time the client is willing to wait until he receives a response from the server

I know how I can set the connect timeout through the setConnectTimeout() method.

Now isn't there a way to set a response timeout too ? I need to set both.

Thanks !
Ian

jlouvel wrote:
Hi Ian,

Currently, you can only set this timeout on the HTTP connector via
Client#setConnectTimeout(). The value of the property will therefore be
shared by all calls going through it.

Does this approach work for you?

Best regards,
Jerome Louvel
--
Restlet ~ Founder and Lead developer ~ http://www.restlet.org
Noelios Technologies ~ Co-founder ~ http://www.noelios.com



-----Message d'origine-----
De : ian.bine [mailto:ian.beauregard.1@ulaval.ca]
Envoyé : mardi 3 novembre 2009 03:40
À : discuss@restlet.tigris.org
Objet : Re: ClientResource response timeout

And I'm using Restlet 2.0 by the way.


ian.bine wrote:
>
> Hi
>
> I am trying to set a response timeout for a client resource. In other
> words, I want to know how I can get my client resource to wait for a
> specific amount of time until giving up a request.
>
> I already read on another topic how to set the connect timeout, but now
> I'd like to know how I can set a response timeout.
>
> Thanks !
> Ian Beauregard
>

--
View this message in context:
http://n2.nabble.com/ClientResource-response-timeout-tp3936182p3936220.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.

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

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

RE: ClientResource response timeout

Reply Threaded More More options
Print post
Permalink
Hi Ian,

You are correct. What you call the response timeout is configurable as the "socketTimeout" in our Apache HTTP Client connector or the "readTimeout" for our Java.Net extension.

Best regards,
Jerome Louvel
--
Restlet ~ Founder and Lead developer ~ http://www.restlet.org
Noelios Technologies ~ Co-founder ~ http://www.noelios.com


-----Message d'origine-----
De : ian.bine [mailto:[hidden email]]
Envoyé : mardi 3 novembre 2009 17:01
À : [hidden email]
Objet : RE: ClientResource response timeout

Isn't there a difference between a connect timeout and a response timeout ?

Connect timeout : time the client is willing to wait until a connection with
the server
Response timeout : time the client is willing to wait until he receives a
response from the server

I know how I can set the connect timeout through the setConnectTimeout()
method.

Now isn't there a way to set a response timeout too ? I need to set both.

Thanks !
Ian


jlouvel wrote:

>
> Hi Ian,
>
> Currently, you can only set this timeout on the HTTP connector via
> Client#setConnectTimeout(). The value of the property will therefore be
> shared by all calls going through it.
>
> Does this approach work for you?
>
> Best regards,
> Jerome Louvel
> --
> Restlet ~ Founder and Lead developer ~ http://www.restlet.org
> Noelios Technologies ~ Co-founder ~ http://www.noelios.com
>
>
>
> -----Message d'origine-----
> De : ian.bine [mailto:[hidden email]]
> Envoyé : mardi 3 novembre 2009 03:40
> À : [hidden email]
> Objet : Re: ClientResource response timeout
>
> And I'm using Restlet 2.0 by the way.
>
>
> ian.bine wrote:
>>
>> Hi
>>
>> I am trying to set a response timeout for a client resource. In other
>> words, I want to know how I can get my client resource to wait for a
>> specific amount of time until giving up a request.
>>
>> I already read on another topic how to set the connect timeout, but now
>> I'd like to know how I can set a response timeout.
>>
>> Thanks !
>> Ian Beauregard
>>
>
> --
> View this message in context:
> http://n2.nabble.com/ClientResource-response-timeout-tp3936182p3936220.html
> Sent from the Restlet Discuss mailing list archive at Nabble.com.
>
> ------------------------------------------------------
> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=24139
> 95
>
> ------------------------------------------------------
> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2414042
>
>

--
View this message in context: http://n2.nabble.com/ClientResource-response-timeout-tp3936182p3939356.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.

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

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