Return-Path: X-Original-To: apmail-hc-httpclient-users-archive@www.apache.org Delivered-To: apmail-hc-httpclient-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D5AFB63C3 for ; Tue, 19 Jul 2011 12:23:01 +0000 (UTC) Received: (qmail 84947 invoked by uid 500); 19 Jul 2011 12:23:01 -0000 Delivered-To: apmail-hc-httpclient-users-archive@hc.apache.org Received: (qmail 84865 invoked by uid 500); 19 Jul 2011 12:23:00 -0000 Mailing-List: contact httpclient-users-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpClient User Discussion" Delivered-To: mailing list httpclient-users@hc.apache.org Received: (qmail 84826 invoked by uid 99); 19 Jul 2011 12:23:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Jul 2011 12:23:00 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW X-Spam-Check-By: apache.org Received-SPF: unknown ~allinclude:aspmx.googlemail.com (athena.apache.org: encountered unrecognized mechanism during SPF processing of domain of russelldb@basho.com) Received: from [74.125.82.179] (HELO mail-wy0-f179.google.com) (74.125.82.179) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Jul 2011 12:22:53 +0000 Received: by wyh21 with SMTP id 21so3309907wyh.10 for ; Tue, 19 Jul 2011 05:22:31 -0700 (PDT) Received: by 10.216.137.17 with SMTP id x17mr3283340wei.52.1311078151422; Tue, 19 Jul 2011 05:22:31 -0700 (PDT) Received: from [192.168.1.71] (94-195-91-102.zone9.bethere.co.uk [94.195.91.102]) by mx.google.com with ESMTPS id a63sm297019wed.8.2011.07.19.05.22.30 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 19 Jul 2011 05:22:30 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1082) Subject: Re: One ThreadSafeClientConnManager, many DefaultHttpClients From: Russell Brown In-Reply-To: <1311078042.2477.57.camel@ubuntu> Date: Tue, 19 Jul 2011 13:22:29 +0100 Content-Transfer-Encoding: 7bit Message-Id: <7C79DD1B-6636-4C82-8055-EA08658E2B98@basho.com> References: <6B277E88-B09E-47D7-83B8-2CF1B26BA880@basho.com> <1311078042.2477.57.camel@ubuntu> To: "HttpClient User Discussion" X-Mailer: Apple Mail (2.1082) On 19 Jul 2011, at 13:20, Oleg Kalnichevski wrote: > On Tue, 2011-07-19 at 12:50 +0100, Russell Brown wrote: >> Hi, >> Is this OK >> >> ThreadSafeClientConnManager cm = new ThreadSafeClientConnManager(); >> >> DefaultHttpClient httpClient1 = new DefaultHttpClient(cm); >> httpClient1.setHttpRequestRetryHandler(handler1); >> >> DefaultHttpClient httpClient2 = new DefaultHttpClient(cm); >> HttpParams cp2 = http.getParams(); >> cp2.setIntParameter(AllClientPNames.CONNECTION_TIMEOUT, 1000); >> >> DefaultHttpClient httpClient3 = new DefaultHttpClient(cm); >> httpClient3.setHttpRequestRetryHandler(handler3); >> HttpParams cp3 = http.getParams(); >> cp3.setIntParameter(AllClientPNames.CONNECTION_TIMEOUT, 5000); >> >> Many thanks in advance >> >> Russell >> > > It is OK. Awesome, thank you! > > Oleg > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org > For additional commands, e-mail: httpclient-users-help@hc.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org For additional commands, e-mail: httpclient-users-help@hc.apache.org