Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 72BAC18381 for ; Wed, 1 Jul 2015 23:18:06 +0000 (UTC) Received: (qmail 97599 invoked by uid 500); 1 Jul 2015 23:18:06 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 97508 invoked by uid 500); 1 Jul 2015 23:18:06 -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 97497 invoked by uid 99); 1 Jul 2015 23:18:06 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Jul 2015 23:18:06 +0000 Date: Wed, 1 Jul 2015 23:18:06 +0000 (UTC) From: "Sebb (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (VFS-296) [FTP] Socket timeout setting doesn't work if connect hangs MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/VFS-296?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14611160#comment-14611160 ] Sebb commented on VFS-296: -------------------------- Or you can use builds from the ASF SNAPSHOT repository. Most Commons components are regularly built on CI servers and the jars are normally uploaded to the snapshot repo. Such builds are not subject to review or QA and are used at the developer's risk; they should never be used in production code. However developers are welcome to use them to help solve bugs. Note that the snapshot builds are not stable, as they will be superseded whenever there is a new CI build. > [FTP] Socket timeout setting doesn't work if connect hangs > ---------------------------------------------------------- > > Key: VFS-296 > URL: https://issues.apache.org/jira/browse/VFS-296 > Project: Commons VFS > Issue Type: Bug > Affects Versions: Nightly Builds > Reporter: Andreas Persson > Fix For: 2.1 > > Attachments: sotimeout.patch, sotimeout_v2.patch > > > The fix from VFS-216 doesn't help if the ftp server doesn't reply with any messages at all (could happen if it's behind a badly configured firewall for example). What happens is that the client.connect() called from FtpClientFactory hangs, and this line is before timeout parameter is set. > I suggest the change in the attached patch. > The scenario can be tested with "netcat -l" instead of a real ftp server. -- This message was sent by Atlassian JIRA (v6.3.4#6332)