Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 49933 invoked from network); 27 Sep 2006 13:15:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 27 Sep 2006 13:15:15 -0000 Received: (qmail 53949 invoked by uid 500); 27 Sep 2006 13:14:53 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 53898 invoked by uid 500); 27 Sep 2006 13:14:53 -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 53887 invoked by uid 99); 27 Sep 2006 13:14:53 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Sep 2006 06:14:53 -0700 Authentication-Results: idunn.apache.osuosl.org smtp.mail=jbisotti@gmail.com; spf=pass Authentication-Results: idunn.apache.osuosl.org header.from=jbisotti@gmail.com; domainkeys=good X-ASF-Spam-Status: No, hits=2.5 required=5.0 tests=DNS_FROM_RFC_ABUSE,HTML_MESSAGE Received-SPF: pass (idunn.apache.osuosl.org: domain gmail.com designates 66.249.92.171 as permitted sender) DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 Received: from [66.249.92.171] ([66.249.92.171:55188] helo=ug-out-1314.google.com) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id DA/70-26726-8497A154 for ; Wed, 27 Sep 2006 06:14:49 -0700 Received: by ug-out-1314.google.com with SMTP id s2so41523uge for ; Wed, 27 Sep 2006 06:14:46 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=PHIDs0wSszisbKY8Sc/rm/yhQQxYLspllbN8dj3HEktVrKNkkvsr6S8i0PDXNBZrGtpW7UM9R06MH4gCnpf0kzmpO5SRMhNL9zrcTn9zT1kYi9yxMYYbCRk9kB+8ryYluwtPLMd1AayOWQBj/efCjlPRpyqVMFSNupi+4KcmpJk= Received: by 10.67.117.2 with SMTP id u2mr512712ugm; Wed, 27 Sep 2006 06:14:46 -0700 (PDT) Received: by 10.66.251.16 with HTTP; Wed, 27 Sep 2006 06:14:45 -0700 (PDT) Message-ID: <71dfa56d0609270614l36bf2dck2ef5be571f8d4f91@mail.gmail.com> Date: Wed, 27 Sep 2006 09:14:45 -0400 From: "Jamie Bisotti" To: "Jakarta Commons Users List" Subject: Re: [NET] ftp connection timeout In-Reply-To: <450E58BC.6060407@ticino.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_37123_15486388.1159362885835" References: <450E58BC.6060407@ticino.com> X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_37123_15486388.1159362885835 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 9/18/06, E. Dominguez wrote: > > Hi all, > > how can I set a timeout to an ftp connection? > > In my program, if I try to connect to an unavailable ftp server the > application hangs (better said waits...). > OS is iSeries's OS400 v5r3 or better. > > [code] > FTPClient client = new FTPClient(); > client.connect("myhost.com"); > //application hangs waiting if no server responding... > client.login("user","password"); > //(...) > [/code] > > Kind regards > > elvisd > > --------------------------------------------------------------------- > To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: commons-user-help@jakarta.apache.org > > I don't have the docs in front of me at the moment, but I think there is another connect() method that takes a connection timeout. -- Jamie Bisotti ------=_Part_37123_15486388.1159362885835--