commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Remko Popma (JIRA)" <>
Subject [jira] [Commented] (VFS-296) [FTP] Socket timeout setting doesn't work if connect hangs
Date Tue, 30 Jun 2015 15:27:04 GMT


Remko Popma commented on VFS-296:

At my company we are using version 2.0 and have recently experienced our app hanging while
trying to send files over FTP. This has happened 4 times in the previous 9 business days.
We are not sure what (if anything) has changed. At the moment we are manually recovering any
time this happens. We would love to upgrade to a version that includes this fix but 2.1 is
not out yet. Is there a plan to release 2.1 in the near future?

> [FTP] Socket timeout setting doesn't work if connect hangs
> ----------------------------------------------------------
>                 Key: VFS-296
>                 URL:
>             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

View raw message