Commons VFS
  1. Commons VFS
  2. VFS-216

FTP configuration does not include option for setting socket timeout

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.1
    • Fix Version/s: 2.0
    • Labels:
      None

      Description

      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.

      1. VFS-216.patch
        2 kB
        Reetu Mutti

        Issue Links

          Activity

          Hide
          Ralph Goers added a comment -

          The patch was applied to trunk. Please verify and close.

          Show
          Ralph Goers added a comment - The patch was applied to trunk. Please verify and close.
          Hide
          Sachindra Nath added a comment -

          Hello,
          Is there a reason, why this patch has not yet made it to the build?
          Any server side application using VFS currently may face a hung socket connection because of this issue.

          We've been seeing this issue on one of our production servers (where a faulty router sometimes creates this condition ). The system should however be able to recover from this error, which it currently does not, and hangs on waiting indefinitely (till a server restart).

          The commons.net already provides the ability to configure socket timeouts ( I believe since commons.net 1.5) as is indicated in the patch by Reetu.

          Please suggest a timeline for this patch being rolled out in a VFS build.

          thanks
          Sachindra

          Show
          Sachindra Nath added a comment - Hello, Is there a reason, why this patch has not yet made it to the build? Any server side application using VFS currently may face a hung socket connection because of this issue. We've been seeing this issue on one of our production servers (where a faulty router sometimes creates this condition ). The system should however be able to recover from this error, which it currently does not, and hangs on waiting indefinitely (till a server restart). The commons.net already provides the ability to configure socket timeouts ( I believe since commons.net 1.5) as is indicated in the patch by Reetu. Please suggest a timeline for this patch being rolled out in a VFS build. thanks Sachindra
          Hide
          Alex Marshall added a comment -

          Unfortunately I have to deal with some exceedingly crappy FTP servers at work which my projects have to communicate with, and this feature would be exceedingly useful. Right now, some of my background tasks are getting hung up transferring files and I could really use this. Please integrate it as soon as possible, it'd be much appreciated.

          Show
          Alex Marshall added a comment - Unfortunately I have to deal with some exceedingly crappy FTP servers at work which my projects have to communicate with, and this feature would be exceedingly useful. Right now, some of my background tasks are getting hung up transferring files and I could really use this. Please integrate it as soon as possible, it'd be much appreciated.
          Hide
          Reetu Mutti added a comment -

          Attached a patch for this issue.

          Patch adds a socket timeout property to FtpFileSystemConfigBuilder, which is used by FtpClientFactory.

          Show
          Reetu Mutti added a comment - Attached a patch for this issue. Patch adds a socket timeout property to FtpFileSystemConfigBuilder, which is used by FtpClientFactory.

            People

            • Assignee:
              Unassigned
              Reporter:
              Reetu Mutti
            • Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development