Thanks Jerome for getting back to me. I ended doing something like this and it seems to work for me
Client client = useHttps ? new Client(new Context(), Protocol.HTTPS) : new Client(new Context(), Protocol.HTTP); HttpClientHelper helper = new HttpClientHelper(client); helper.getHelpedParameters().set("readTimeout", Integer.toString(socketTimeout), false); cheers </jima> On 28/10/2009, at 5:43 AM, Jerome Louvel wrote: > Hi Jim, > > The patch you are referring to is actually attached to issue 622 but > it > applies to Apache HTTP Client 4.0 version now used by Restlet 2.0. It > should be applied before Restlet 2.0 M6. > > Restlet 1.1 however is based on version 3.1 which has a different > mechanism based on the IdleConnectionTimeoutThread class. > > Unfortunately, such a change applied to Restlet 1.1 would add a > feature > and not be just a bug fix... One workaround would be to develop a > custom > MyHttpClientHelper class extending > com.noelios.restlet.ext.http.HttpClientHelper. It could then access to > the "httpClient" property where you could set the > IdleConnectionTimeoutThread. Then you would need to manually register > the customized helper in the engine or use it when creating the Client > instance. > > Hope it will help! > > Best regards, > Jerome Louvel > -- > Restlet ~ Founder and Lead developer ~ http://www.restlet.org > Noelios Technologies ~ Co-founder ~ http://www.noelios.com > > > > > Jim Alateras a écrit : >> Jerome, >> >> I notice that there seems to be a patch for the http timeout >> connection problem some people are experiencing >> (http://restlet.tigris.org/issues/show_bug.cgi?id=622 >> ). Will this patch also be applied to the 1.1 branch? If not can you >> point me to the patch submitted by Sanjay. >> >> cheers >> </jima> >> >> ------------------------------------------------------ >> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2409120 >> > > ------------------------------------------------------ > http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2411754 ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2412378