This project is read-only.

Dispose vs Close vs Disconnect

May 23, 2013 at 10:38 AM
Normally Dispose() and Close() are doing exactly the same thing. What is the reason you handle Dispose() and Close() different in FtpSocketStream?
I also note that it not run Disconnect() if I run Dispose() of FtpClient. The result is that the connection is hanging if the program is not closed properly.
Coordinator
May 23, 2013 at 2:39 PM
Dispose() used to call Close() and I changed at some point I think because there were some problems with connection time-outs and interruptions causing exceptions when the object was disposed. I've since addressed that the best I can so I've changed it back so that Dispose() calls Close() respectively. Check out the latest revision for the changes.