大网数据广告活动
Web服务器与PHP

FTP download session fails when connection is closed

· 52CE 我爱测

This article provides workarounds for the FTP download session fails problem that occurs when FTP control connection is closed.

This article helps you resolve the FTP download session fails problem that occurs when FTP control connection is closed.

Original product version:   Internet Information Services
Original KB number:   254722

Symptoms

If the control connection is closed during an FTP download session, the download from the IIS FTP site fails.

Note: This issue usually occurs when a firewall is in use that has been set to close the control connection if no TCP data is transferred after a certain amount of time.

Cause

This is by design. RFC-959 states the following:

... The protocol requires that the control connections be open while data transfer is in progress. It is the responsibility of the user to request the closing of the control connections when finished using the FTP service, while it is the server who takes the action. The server may abort data transfer if the control connections are closed without command...

Workaround

To resolve this issue, try the following workarounds:

  • Use an FTP utility or firewall setting that keeps the control connection open.
  • Use a faster connection.
  • Request that the FTP Site owner break the file that the download fails on into multiple, smaller files.

More information

This scenario usually occurs when you are downloading a large file over a slow connection.

Source: Microsoft Learn / IT Pro troubleshooting by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / IT Pro troubleshooting
适用范围
See source applicability · Source date 12/11/2020
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。