Menu

#6 FTP connection not correctly aborted

Current_Release
open
nobody
None
5
2012-12-05
2012-12-02
Anonymous
No

At ln 398, col 13 in FTP.cs Stream.Close() is called. Apparently calling it before FtpWebRequest.Abort() doesn't correctly disconnect the client (which I noticed while using the program with FTP with two maximum simultaneous connections). Putting the latter method before the former solves the problem. I haven't been able to test it on other workstations, but I think that the bug happens systematically.

I'm attaching the fixed FTP.cs.

1 Attachments

Discussion

  • Anonymous

    Anonymous - 2012-12-05

    I've looked into the problem more and the actual fix would be setting FtpWebRequest.KeepAlive = false, and removing the call to FtpWebRequest.Abort() which is used only for asynchronous I/O.

     
  • Angelo Geels

    Angelo Geels - 2012-12-05

    Nice catch!

     

Anonymous
Anonymous

Add attachments
Cancel