[
https://issues.apache.org/jira/browse/NET-204?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12579041#action_12579041
]
alex commented on NET-204:
--------------------------
Another suggestion is about Exceptions that net returns when there are errors
in communication. FTPClient will return IOException for most of the errors, for
example it converts InterruptedException into a common IOException with error
message is set as "interrupted ...", in fact InterruptedException is
meaningfull enough, the string message on the contrary makes it hard to deal
with errors, since messages may be changed as the api is updated, applicatoin
can't depend on it. As a thought maybe consistant id or some new subclasses of
Exception are a better?
> If the connection is slow, FTPClient will work abnormal.
> --------------------------------------------------------
>
> Key: NET-204
> URL: https://issues.apache.org/jira/browse/NET-204
> Project: Commons Net
> Issue Type: Bug
> Affects Versions: 1.4
> Environment: JDK 1.5.07
> Reporter: alex
>
> When the connection is slow, it seems methods of FTPClient will work
> abnormal, e.g. if call list("/"), sometime it returns error code 500...,
> sometime it returns 0 number of files, some time even throw exception. But
> this is because of the connection is slow, so shouldn't it returns can't
> connect to site? When FTPclient can't returns remote file list, I can use
> FileZilla or IE to browse that site.
> If the connection is ok. then file list is returned and work well, but how
> fast the connection is required is not certain. The connection is not
> changed, just because the time when program is running at is different.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.