Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 68978 invoked from network); 20 Jul 2007 18:18:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Jul 2007 18:18:47 -0000 Received: (qmail 9226 invoked by uid 500); 20 Jul 2007 18:18:46 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 8284 invoked by uid 500); 20 Jul 2007 18:18:44 -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 8273 invoked by uid 99); 20 Jul 2007 18:18:44 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Jul 2007 11:18:44 -0700 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 includes SPF record at spf.trusted-forwarder.org) Received: from [205.158.62.67] (HELO webmail-outgoing.us4.outblaze.com) (205.158.62.67) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Jul 2007 11:18:40 -0700 Received: from unknown (unknown [192.168.8.90]) by webmail-outgoing.us4.outblaze.com (Postfix) with QMQP id 86DD21800205 for ; Fri, 20 Jul 2007 18:03:41 +0000 (GMT) X-OB-Received: from unknown (205.158.62.49) by wfilter2.us4.outblaze.com; 20 Jul 2007 18:03:41 -0000 Received: by ws1-1.us4.outblaze.com (Postfix, from userid 1001) id 5D81E1BF2C3; Fri, 20 Jul 2007 18:03:41 +0000 (GMT) Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" MIME-Version: 1.0 From: "Oscar Usifer" To: "Jakarta Commons Users List" Date: Fri, 20 Jul 2007 13:03:40 -0500 Subject: Re: [FTPClient] How to set connect timeout Received: from [66.17.52.1] by ws1-1.us4.outblaze.com with http for oscaruser@programmer.net; Fri, 20 Jul 2007 13:03:40 -0500 X-Originating-Ip: 66.17.52.1 X-Originating-Server: ws1-1.us4.outblaze.com Message-Id: <20070720180341.5D81E1BF2C3@ws1-1.us4.outblaze.com> X-Virus-Checked: Checked by ClamAV on apache.org Folks, Discovered a use for the FAQ topic "Q: How can I set a connection timeout?"= , and searching found rwinston's commons-net-2.0.0-SNAPSHOT provides the So= cketClient.setConnectTimeout as desired. Perhaps I should update the FAQ wi= ki? Thanks, OSCAR ----- Original Message ----- From: "Oscar Usifer"=20 To: commons-user@jakarta.apache.org Subject: [FTPClient] How to set connect timeout Date: Thu, 19 Jul 2007 19:27:54 -0500 Folks, Is there a variable or function I can use to set the FTP connection time out prior to calls of FTPClient connect ? My situation is that I may be attempting to connect to an FTP server that is down/offline, and I'd like the program to abort within 100ms if that's the case. Thanks,OSCAR -- We've Got Your Name at http://www.mail.com! Get a FREE E-mail Account Today - Choose From 100+ Domains --=20 We've Got Your Name at http://www.mail.com! Get a FREE E-mail Account Today - Choose From 100+ Domains --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org