commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gary D. Gregory (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (VFS-296) [FTP] Socket timeout setting doesn't work if connect hangs
Date Sat, 12 May 2012 20:32:48 GMT

     [ https://issues.apache.org/jira/browse/VFS-296?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Gary D. Gregory updated VFS-296:
--------------------------------

    Summary: [FTP] Socket timeout setting doesn't work if connect hangs  (was: 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
>         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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message