commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oliver Siegmar (JIRA)" <>
Subject [jira] Created: (IO-208) Add timeout (connection and read) support for FileUtils.copyURLToFile
Date Mon, 29 Jun 2009 15:20:47 GMT
Add timeout (connection and read) support for FileUtils.copyURLToFile

                 Key: IO-208
             Project: Commons IO
          Issue Type: Improvement
          Components: Utilities
    Affects Versions: 1.5
            Reporter: Oliver Siegmar

The copyURLToFile(URL source, File destination) method in FileUtils uses source.openStream()
to obtain an input stream for the URL. Unfortunately the openStream() method does not set
any connection or read timeouts and might cause applications to hang if they're downloading
files using this method. My patch adds another method (a second method to keep backwards compatibility)
copyURLToFile(URL source, File destination, int connectionTimeout, int readTimeout) to let
define those timeouts.

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

View raw message