You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Andreas Persson (JIRA)" <ji...@apache.org> on 2010/01/12 18:03:54 UTC

[jira] Created: (VFS-296) FTP socket timeout setting doesn't work if connect hangs

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


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 is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (VFS-296) FTP socket timeout setting doesn't work if connect hangs

Posted by "Andreas Persson (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/VFS-296?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Persson updated VFS-296:
--------------------------------

    Attachment: sotimeout.patch

> 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
>         Attachments: sotimeout.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 is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.