Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
4.6k views
in .NET FTP by (200 points)
Hi

I currently compare various SFTP libraries and I like the API of edtFtpPro. Now I found the following problem,
if you
#1: connect to a FTP server
#2: simulate a network shutdown by unplugging the network cable or closing the modem
#3: Invoke a method e.g. to list the file names within a directory

The library doesn't seem to throw an exception but hangs. It even returns true for IsConnected. In fact you have to wait a couple of seconds till the library dispatches the closed event.
I would appreciate to know, how I could ensure, that my application doesn't hang in such situations.

Kind regards

Alex

7 Answers

0 votes
by (162k points)
Taking a look at this ... will report back
0 votes
by (162k points)
Hmm, it turns out that errors like this are reported in the logs (try enabling logging) but there isn't a decent mechanism for notifying the user.

What we'll do is to enable a callback or event to be triggered when these kinds of errors arise. Then the user can take whatever action they deem necessary.

If you are interested we'll provide a build for you on Monday that will do this.
0 votes
by (200 points)
I would appreciate very much to test such a build

#1 would it be possible to redirect the error to the already existing error event or the disconnection to the close event ?
#2 is it possible to cancel the running synchronous operation then to avoid hanging applications?


Alex
0 votes
by (162k points)
On reflection we will do our own internal handler and just throw an exception in the synchronous operation.

Please email us at support at enterprisedt dot com so we can send you details of the new build when it's complete - which should be on Monday.
0 votes
by (162k points)
Ok, we have a fix for this problem. Please email us at support at enterprisedt dot com citing this topic and we'll email you details of the release to download.
0 votes
by (162k points)
A note for everyone that edtFTPnet/PRO 4.0.6 will have this fix included.
0 votes
by (200 points)
Another note for everyone, this support is awesome.
Thanks

Alex

Categories

...