How to improve the Performance of FtpWebRequest?

后端 未结 18 1024
忘掉有多难
忘掉有多难 2020-11-28 04:46

I have an application written in .NET 3.5 that uses FTP to upload/download files from a server. The app works fine but there are performance issues:

  1. It take

18条回答
  •  有刺的猬
    2020-11-28 05:10

    KeepAlive is working. FtpWebRequest caches connections inside, so they can be reused after some time. For details and explanation of this mechanism you can look to ServicePoint.

    Another good source of information is to look into FtpWebRequest source (you can do it on VS2008).

提交回复
热议问题