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: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]