From commons-user-return-18884-apmail-jakarta-commons-user-archive=jakarta.apache.org@jakarta.apache.org Thu Mar 08 22:18:07 2007 Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 36538 invoked from network); 8 Mar 2007 22:18:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Mar 2007 22:18:04 -0000 Received: (qmail 2785 invoked by uid 500); 8 Mar 2007 22:18:02 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 2752 invoked by uid 500); 8 Mar 2007 22:18:01 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 2711 invoked by uid 99); 8 Mar 2007 22:18:01 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Mar 2007 14:18:01 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [159.134.118.22] (HELO mail06.svc.cra.dublin.eircom.net) (159.134.118.22) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 08 Mar 2007 14:17:49 -0800 Received: (qmail 86638 messnum 2905974 invoked from network[159.134.237.77/webmail00.eircom.net]); 8 Mar 2007 22:17:25 -0000 Received: from webmail00.eircom.net (HELO webmail.eircom.net) (159.134.237.77) by mail06.svc.cra.dublin.eircom.net (qp 86638) with SMTP; 8 Mar 2007 22:17:25 -0000 From: "Rory Winston" Reply-To: To: "Jakarta Commons Users List" , commons-user@jakarta.apache.org Subject: Re: HttpClient: Socket(hostName,) or Socket(InetAddress,) Date: Thu, 8 Mar 2007 22:17:25 +0000 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit X-Originating-IP: 86.132.123.39 X-Mailer: Eircom Net CRC Webmail (http://www.eircom.net/) Organization: Eircom Net (http://www.eircom.net/) X-Virus-Checked: Checked by ClamAV on apache.org Message-Id: <20070308221752.2E4B110FB007@herse.apache.org> Why? "Jakarta Commons Users List" wrote: > > Hi, > > I just noticed that in > org/apache/commons/httpclient/protocol/DefaultProtocolSocketFactory > > we use the Socket(host, port), why not use Socket(InetAddress, port) > > I guess the the Socket(host, port) will eventually call > Socket(InetAddress, port), right? > I think if we use Socket(InetAddress, port), can improve the productivity. > > thoughts? > > James. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: commons-user-help@jakarta.apache.org > > ----------------------------------------------------------------- Find the home of your dreams with eircom net property Sign up for email alerts now http://www.eircom.net/propertyalerts --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org