Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 99309 invoked from network); 20 Dec 2006 10:16:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Dec 2006 10:16:45 -0000 Received: (qmail 62215 invoked by uid 500); 20 Dec 2006 10:16:50 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 62143 invoked by uid 500); 20 Dec 2006 10:16:50 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 62132 invoked by uid 99); 20 Dec 2006 10:16:50 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Dec 2006 02:16:50 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Dec 2006 02:16:42 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 729E471429F for ; Wed, 20 Dec 2006 02:16:22 -0800 (PST) Message-ID: <24362912.1166609782466.JavaMail.jira@brutus> Date: Wed, 20 Dec 2006 02:16:22 -0800 (PST) From: "Rory Winston (JIRA)" To: commons-dev@jakarta.apache.org Subject: [jira] Closed: (NET-30) FTPClient deals badly with adverse network conditions MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ http://issues.apache.org/jira/browse/NET-30?page=all ] Rory Winston closed NET-30. --------------------------- > FTPClient deals badly with adverse network conditions > ----------------------------------------------------- > > Key: NET-30 > URL: http://issues.apache.org/jira/browse/NET-30 > Project: Commons Net > Issue Type: Bug > Environment: Operating System: Linux > Platform: PC > Reporter: Alain Knaff > > We are attempting to use the FTPClient included in commons-net 1.2.2 to write > an application which has to deal with various outages: > - connection closed by server, without 421 warning > - connection frozen > - server temporarily unreachable > - ... > > However, it appears that in most of these cases, FTPClient becomes easily > confused: > - If the connection is closed without warning, FTPClient doesn't notice at > first: ftp.isConnected() still returns true. However, when attempting to use > such a closed connection, we do get the correct exception > (FTPConnectionClosedException), at least most of the time (occasionnally we do > get various SocketExceptions instead) > - If the ftp server doesn't respond in time, FTPClient hangs forever, even > after the ftp server responds eventually > - If setSoTimeout is set, and if the server doesn't respond, the following > behaviour happens: > ** if the server becomes responsive again before the timeout happens, the > client hangs until the timeout then receives SocketTimeoutException exception. > We would prefer if the client just continued normally (as the server did > respond before timeout) > ** if on the other hand the server does not become responsive when the timeout > happens, the client won't get any exception when timeout expires. Instead it > will just hang. As soon as the server gets responsive again (i.e. _after_ the > timeout had expired), the client immediately get the exception. We would prefer > if the client got the exception at the timeout, rather than long afterwards. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org