Skip to content

Conversation

@j2rong4cn
Copy link
Member

Previously, the FTP Link function was designed to reuse a single control connection
for multiple download range requests. This approach could lead to connection conflicts
and unpredictable behavior, as the FTP protocol is stateful and not designed for
concurrent RETR commands on a single control connection.

This commit changes the behavior to create a new control connection for each
download range request. This ensures that each concurrent download task operates
on a dedicated, isolated connection, improving the stability and reliability of
multi-threaded FTP downloads.

Previously, the FTP `Link` function was designed to reuse a single control connection
for multiple download range requests. This approach could lead to connection conflicts
and unpredictable behavior, as the FTP protocol is stateful and not designed for
concurrent `RETR` commands on a single control connection.

This commit changes the behavior to create a new control connection for each
download range request. This ensures that each concurrent download task operates
on a dedicated, isolated connection, improving the stability and reliability of
multi-threaded FTP downloads.
@j2rong4cn j2rong4cn merged commit 317d190 into OpenListTeam:main Aug 6, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant