rom: [EMAIL PROTECTED]
> To: discuss@restlet.tigris.org
> Date: Fri, 17 Oct 2008 12:32:41 +0200
> Subject: RE: Assistance and Question
>
> Hi Sanjay,
>
> I can confirm that Client instances have been designed to be reused
> concurrently by several threads. The code shoul
Co-founder ~ http://www.noelios.com
-Message d'origine-
De : Sanjay Acharya [mailto:[EMAIL PROTECTED]
Envoyé : jeudi 16 octobre 2008 23:46
À : discuss@restlet.tigris.org
Objet : RE: Assistance and Question
If one can get access to the HttpClientHelper class then one cou
Envoyé : jeudi 16 octobre 2008 04:55
À : discuss@restlet.tigris.org
Objet : Re: Assistance and Question
I think Client is intended to be thread-safe, but it isn't currently,
because the connectTimeout field is not guarded by a lock (nor is it
volatile) -- sorry Jerome, I just noticed this. This
estlet.org
Noelios Technologies ~ Co-founder ~ <http://www.noelios.com/>
http://www.noelios.com
_
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Tim
Peierls
Envoyé : vendredi 17 octobre 2008 05:16
À : discuss@restlet.tigris.org
Objet : Re: Assistance and Question
On Thu, Oct 16, 2008 at 4:57 PM, Rob Heittman <[EMAIL PROTECTED]>wrote:
> Pragmatically, our applications do reuse Client instances in production
> code and have not had any trouble with this. It's meant to be thread safe.
> Tim points out a valid thread safety issue, but it's not likely to caus
tlet.tigris.org
> Subject: Re: Assistance and Question
>
> Unfortunately, I don't know. In my apps, which tend to be single-user, the
> maxConnectionsPerHost is usually 2, the HTTP/1.1 recommended number for a
> single-user agent, (RFC 2616, 8.1.4). I would be very interested to k
Unfortunately, I don't know. In my apps, which tend to be single-user, the
maxConnectionsPerHost is usually 2, the HTTP/1.1 recommended number for a
single-user agent, (RFC 2616, 8.1.4). I would be very interested to know,
however ... as this is important behavior for a proxy representing multipl
med.
Regards,
Sanjay
> Date: Thu, 16 Oct 2008 16:57:03 -0400
> From: [EMAIL PROTECTED]
> To: discuss@restlet.tigris.org
> Subject: Re: Assistance and Question
>
> Pragmatically, our applications do reuse Client instances in production code
> and have not had any trouble
n these
> parameters and settings become superflous IMO.
>
> Thanks,
> Sanjay
>
> > Date: Thu, 16 Oct 2008 09:28:57 +0200
> > From: [EMAIL PROTECTED]
> > To: discuss@restlet.tigris.org
> > Subject: RE: Assistance and Question
> Date: Thu, 16 Oct 2008 09:28:57 +0200
> From: [EMAIL PROTECTED]
> To: discuss@restlet.tigris.org
> Subject: RE: Assistance and Question
>
> Hi,
>
>> That said, the direction of preference seems to point to using a
>> single instance of Restl
Hi,
> That said, the direction of preference seems to point to using a
> single instance of Restlet's Client class and setting the "maxConnectio
> nsPerHost" to some
> appropriate value. One concern that I have is whether Restlet's
> Client is designed to be thread safe so that multiple thread
ize the same
> instance?
> In other words, is singleton usage the recommended pattern for using the
> client?
>
> Thanks much,
> Sanjay
>
>
>
>
> --
>
> > From: [EMAIL PROTECTED]
> > To: discuss@restlet.tigris.org
> >
at multiple threads can utilize the same
instance?
In other words, is singleton usage the recommended pattern for using the
client?
Thanks much,
Sanjay
> From: [EMAIL PROTECTED]> To: discuss@restlet.tigris.org> Date: Wed, 15 Oct
> 2008 08:46:06 +0200> Subject: RE: Assistance
> From: [EMAIL PROTECTED]
> To: discuss@restlet.tigris.org
> Date: Wed, 15 Oct 2008 08:46:06 +0200
> Subject: RE: Assistance and Question
>
>
> Hi Sanjay,
>
> As a first step, I would highly recommend moving to 1.1 RC2 or a more recent
> snapsho
elios Technologies ~ Co-founder ~ http://www.noelios.com
-Message d'origine-
De : Sanjay Acharya [mailto:[EMAIL PROTECTED]
Envoyé : mercredi 15 octobre 2008 02:39
À : discuss@restlet.tigris.org
Objet : Assistance and Question
Hi,
I am using Restlet version 1.1 m1. There are times when we
Hi,
I am using Restlet version 1.1 m1. There are times when we run out of open file
handles in stage environment with "too many open file handles" error. I am also
using the JaxbRepresentation to marshall the data.
I am trying to recreate the issue related to
http://restlet.tigris.org/issues/
16 matches
Mail list logo