commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bernd Eckenfels (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (VFS-296) [FTP] Socket timeout setting doesn't work if connect hangs
Date Tue, 30 Jun 2015 18:28:05 GMT

    [ https://issues.apache.org/jira/browse/VFS-296?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14608808#comment-14608808
] 

Bernd Eckenfels commented on VFS-296:
-------------------------------------

Hello, if you have a stack trace of such a hang it might be good to check.

Yes there is a plan, but dont hold your breath :) https://wiki.apache.org/commons/VfsReleaseState

> [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)

Mime
View raw message