You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Brad Davis (JIRA)" <ji...@apache.org> on 2010/07/13 20:27:51 UTC

[jira] Commented: (VFS-313) CLONE -FTP configuration does not include option for setting socket timeout

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

Brad Davis commented on VFS-313:
--------------------------------

The original issue / patch does not resolve the issue.  If you look at the order of operations, the so timeout is set only after the client.connect(hostname, port); has been called, meaning the socket can hang on the connection.  Attached is a patch which resolves this and allows for a two seperate timeout values, one for connect and one for the control connection communications in general (the previously added  setSoTimeout)

> CLONE -FTP configuration does not include option for setting socket timeout
> ---------------------------------------------------------------------------
>
>                 Key: VFS-313
>                 URL: https://issues.apache.org/jira/browse/VFS-313
>             Project: Commons VFS
>          Issue Type: Bug
>    Affects Versions: 1.1
>            Reporter: Brad Davis
>             Fix For: 2.0
>
>
> The FTP Configuration includes an option to set a timeout for the data connection, but not for the socket timeout. This is a problem, as idle sockets can cause your download to hang forever and never timeout.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.