You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2005/02/08 20:31:28 UTC

DO NOT REPLY [Bug 33450] New: - FTPClient: setSoTimeout() doesn't work properly on retrieveFile() method

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=33450>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=33450

           Summary: FTPClient: setSoTimeout() doesn't work properly on
                    retrieveFile() method
           Product: Commons
           Version: 1.3 Final
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: Net
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: onursencer@gmail.com


My purpose is to terminate or cancel  a retrieveFile() method if it takes more
time than a specified timeout value. I connected with ftp client, set soTimeout
to 700 msec and started to retrieve a file that takes 6000 seconds to get. When
retrieving continues, after nearly 700 milisec., timeout occurs (I guess) but
the retrieve procedure continues. After 6000msec. timeout exception is thrown. I
don't want to     
wait for 6000 msec., and I think, I should get the exception after 700 msec. I
couldn't find other helpful methods, setDataTimeout () method does something
different I guess: If I set setDataTimeout to 10 msec., if a package of remote
file comes more than 10 msec. late after the previous package , exception is
thrown, am I right?

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org