Return-Path: Delivered-To: apmail-commons-issues-archive@locus.apache.org Received: (qmail 92773 invoked from network); 19 Jun 2008 08:36:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Jun 2008 08:36:43 -0000 Received: (qmail 33399 invoked by uid 500); 19 Jun 2008 08:36:39 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 33312 invoked by uid 500); 19 Jun 2008 08:36:39 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 33286 invoked by uid 99); 19 Jun 2008 08:36:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Jun 2008 01:36:39 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Jun 2008 08:35:57 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 75CBC234C149 for ; Thu, 19 Jun 2008 01:35:46 -0700 (PDT) Message-ID: <498200867.1213864546481.JavaMail.jira@brutus> Date: Thu, 19 Jun 2008 01:35:46 -0700 (PDT) From: "Toshiaki Masaki (JIRA)" To: issues@commons.apache.org Subject: [jira] Created: (NET-223) the data connection socket is not closed when an IOException occurred MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org the data connection socket is not closed when an IOException occurred --------------------------------------------------------------------- Key: NET-223 URL: https://issues.apache.org/jira/browse/NET-223 Project: Commons Net Issue Type: Bug Affects Versions: 1.4 Environment: Windows Reporter: Toshiaki Masaki In method FTPClient.initiateListParsing(FTPFileEntryParser, String), the data connection socket is not closed when an IOException(e.g. SocketTimeoutException) occurred while calling FTPListParseEngine.readServerList(). > engine.readServerList(socket.getInputStream(), getControlEncoding()); > socket.close(); In other methods that open a data connection socket, like retrieveFile() and __storeFile(), the socket is closed when an IOException occurred. I think, the client should close the socket like the following. > try { > engine.readServerList(socket.getInputStream(), getControlEncoding()); > } finally { > socket.close(); -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.